Hi,
i want to rotate btHingeConstraints with a particular angular velocity. i know the current angle and the target angle and calculate the angular velocity that is needed to rotate to the target angle in a given time.
but when i use enableAngularMotor(true,calculatedVelocity, maxMotorImpulse) it does'nt work like i want it to work. the rotation is always faster. but it is not just faster, the time is always varying. even several constraints that work under the same conditions (same masses etc) need different times to rotate to the target angle when i set the same velocity and target angles.
i know that the maximum motor impulse has influence on the behavior and on the rotation time. but i thought that it is possible to set a desired angular velocity and that this velocity is used and that the calculated time is needed for the rotation.
can someone help me to achieve the desired behavior or tell me why it is not working?
Varying angular velocity of btHingeConstraint (ang. motor)
-
- Posts: 33
- Joined: Tue Jun 05, 2012 8:43 am
-
- Posts: 463
- Joined: Fri Nov 30, 2012 4:50 am
Re: Varying angular velocity of btHingeConstraint (ang. moto
Mind putting up the motor control code (and velocity checks) here? I've seen issues like that before, but it's usually an issue where the controller is feeding in values it shouldn't be using.
-
- Posts: 33
- Joined: Tue Jun 05, 2012 8:43 am
Re: Varying angular velocity of btHingeConstraint (ang. moto
at the moment it is difficult to post the code here because it's embedded in a complicated framework with many classes that interact...but i am just implementing a simple program where i can test the issue, either i can solve the problem on my own or i have a more simple code that i can post here