File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 79
79
Revolute (; kwargs... ) = Revolute {Float64} (; kwargs... )
80
80
81
81
82
- function revertRevoluteKind! (newChild :: Object3D {F} ) where F <: Modia3D.VarFloatType
83
- newChild . joint. obj1, newChild . joint. obj2 = newChild . joint. obj2, newChild . joint. obj1
84
- newChild . joint. eAxis = - newChild . joint. eAxis
82
+ function revertRevoluteKind! (joint :: Revolute {F} ) where F <: Modia3D.VarFloatType
83
+ joint. obj1, joint. obj2 = joint. obj2, joint. obj1
84
+ joint. eAxis = - joint. eAxis
85
85
return nothing
86
86
end
Original file line number Diff line number Diff line change 863
863
864
864
function jointSpecificTreatment! (oldChild:: Object3D{F} , newChild:: Object3D{F} ):: Nothing where F <: Modia3D.VarFloatType
865
865
if newChild. jointKind == Modia3D. Composition. RevoluteKind
866
- revertRevoluteKind! (newChild)
866
+ joint:: Revolute{F} = newChild. joint
867
+ revertRevoluteKind! (joint)
867
868
return nothing
868
869
elseif newChild. jointKind == Modia3D. Composition. FixKind
869
870
# nothing needs to be done here
You can’t perform that action at this time.
0 commit comments