-
|
My character's arm is a physical entity. I want to achieve: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Jolt simulates rigid bodies, so in principle an arm cannot 'stretch'. That said, you can have two rigid bodies inside each other and connect them using a Search for the code references I gave in the |
Beta Was this translation helpful? Give feedback.

Jolt simulates rigid bodies, so in principle an arm cannot 'stretch'. That said, you can have two rigid bodies inside each other and connect them using a
SliderConstraintso that they can slide out. You can drive these to a relative position using motors (SetMotorState(EMotorState::Position)) while limiting the force (MotorSettings::SetForceLimits). Ensure that the arm parts don't collide with each other by using aGroupFilterTable. Fingers can be made usingHingeConstraints that can also be driven using motors. You could make the upper armEMotionType::Kinematicand move it around usingBodyInterface::MoveKinematic.Search for the code references I gave in the
Samplesfolder and you will…