0
0
0re12013-04-09 13:01:27
JavaScript
0re1, 2013-04-09 13:01:27

How to implement muscle in box2d

What type of joints is suitable for the implementation of connections that behave like a muscle.

Tried DistanceJoint but it doesn't react on SetLength

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
denim, 2013-04-10
@denim

What do you mean by "muscle"? if you want to move the body to which the joint is attached, then you need to look towards the joint motor. example:

jointDef.maxMotorTorque = 10.0f;
jointDef.motorSpeed = 0.0f;
jointDef.enableMotor = true;

the movement will take place in the degrees of freedom of the joint

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question