Skip to content

Commit

Permalink
propagate mass in BodyShape to inner body
Browse files Browse the repository at this point in the history
  • Loading branch information
baggepinnen committed Sep 18, 2024
1 parent 10fea0b commit 0f39720
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components.jl
Original file line number Diff line number Diff line change
Expand Up @@ -414,9 +414,9 @@ See also [`BodyCylinder`](@ref) and [`BodyBox`](@ref) for body components with p

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


pars = [r; radius; color; shapefile; shape_transform; shape_scale]
pars = [radius; color; shapefile; shape_transform; shape_scale]

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

Expand Down

0 comments on commit 0f39720

Please sign in to comment.