jgerstmayr / EXUDYN

Multibody Dynamics Simulation: Rigid and flexible multibody systems
https://www.youtube.com/channel/UCsQD2bIPBXB_4J23WtqKkVw/playlists
Other
173 stars 23 forks source link

how to setup joints speed not torque? #79

Closed lizhuang2511 closed 1 month ago

lizhuang2511 commented 1 month ago

i can use objectconnectortorsionlspringdamper to setup joint velocity,but i can't understand rotationmark0,rotationmark1,can you explain to me?, in addition code dependency where can see。

jgerstmayr commented 1 month ago

You should read the documentation. Use search method on readthedocs to find all examples using TorsionalSpringDamper ... The TorsionalSpringDamper acts around the local Z-axis. If you want the TorsionalSpringDamper to act around the local X-axis, you have to rotate the local frames of your markers using rotationMarker0 (or 1) such that the X-axis becomes the Z-axis. This is the same for all joints using rotationMarker parameters (like GenericJoint, RevoluteJointZ, etc.).