Skip to content

Commit 44ac4e7

Browse files
committed
update render function to use RollingWheelJoint type and fix spring_mesh parameters
1 parent 29864a3 commit 44ac4e7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ext/Render.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ function render!(scene, ::typeof(UniversalSpherical), sys, sol, t)
791791
true
792792
end
793793

794-
function render!(scene, ::Union{typeof(OneDOFRollingWheelJoint), typeof(SlipWheelJoint)}, sys, sol, t)
794+
function render!(scene, ::Union{typeof(RollingWheelJoint), typeof(SlipWheelJoint)}, sys, sol, t)
795795

796796
r_0 = get_fun(sol, collect(sys.frame_a.r_0))
797797
# framefun = get_frame_fun(sol, sys.frame_a)
@@ -1087,7 +1087,7 @@ function render!(scene, ::Union{typeof(P.Spring), typeof(P.SpringDamper)}, sys,
10871087
thing = @lift begin
10881088
r1 = Point3f(r_0a($t)..., 0)
10891089
r2 = Point3f(r_0b($t)..., 0)
1090-
spring_mesh(r1,r2; n_wind, radius, N, end_ratio, end_ratio)
1090+
spring_mesh(r1,r2; n_wind, radius, N, end_ratio)
10911091
end
10921092
plot!(scene, thing; color, transparency=true)
10931093
true

0 commit comments

Comments
 (0)