Skip to content

Commit 0ffe0e8

Browse files
committed
add back r
1 parent a84d0b1 commit 0ffe0e8

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

ext/Render.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ function (sol::FakeSol)(t; idxs=nothing)
5757
elseif idxs isa Real
5858
recursive_extract(sol, idxs)
5959
else
60+
# ret = zeros(length(idxs))
61+
# Threads.@threads for i in 1:length(idxs)
62+
# ret[i] = recursive_extract(sol, idxs[i])
63+
# end
64+
# ret
6065
[recursive_extract(sol, i) for i in idxs]
6166
end
6267
end

src/components.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -414,9 +414,9 @@ See also [`BodyCylinder`](@ref) and [`BodyBox`](@ref) for body components with p
414414

415415
shapecode = encode(shapefile)
416416
@parameters begin
417-
# r[1:3]=r, [
418-
# description = "Vector from frame_a to frame_b resolved in frame_a",
419-
# ]
417+
r[1:3]=r, [
418+
description = "Vector from frame_a to frame_b resolved in frame_a",
419+
]
420420
radius = radius, [description = "Radius of the body in animations"]
421421
color[1:4] = color, [description = "Color of the body in animations"]
422422
shapefile[1:length(shapecode)] = shapecode
@@ -425,7 +425,7 @@ See also [`BodyCylinder`](@ref) and [`BodyBox`](@ref) for body components with p
425425
end
426426

427427

428-
pars = [radius; color; shapefile; shape_transform; shape_scale]
428+
pars = [r; radius; color; shapefile; shape_transform; shape_scale]
429429

430430
r_0, v_0, a_0 = collect.((r_0, v_0, a_0))
431431

0 commit comments

Comments
 (0)