Rotating hinge with constant speed and force

PJani

28-02-2009 18:14:45

I want to rotate hinge with constant speed so if force on joint changes there is stil the same speed...like calculateStopAlpha but this functon useless for me becouse i want full 360degrees rotation. I tried to do hinge->setCallbackAcell(calculateStopAlpha(angle)); and changing angle by small delta, but when i go from 180Degrees to -180deg the hinge jumps 360deg in oposite direction with full speed.

How can rotate at constant speed.

Zero23

01-03-2009 07:44:39

Hi
http://www.ogre3d.org/wiki/index.php/Ma ... The_Camera look here at this Code.

You have to set several times the rotation. I hope that helps ;)

Zero

PJani

01-03-2009 16:41:42

Hmm good idea!

Is there any example code how calculateStopAlpha is calculated meybe to write my own calculateStopAlpha.

Zero23

01-03-2009 18:32:50

Sry I dont know an example, may you ask in the Newton forum.

Zero

PJani

02-03-2009 22:18:38

In what units are...
setCallBackAcell(acell)...meybe rad/s^2 ?
setCallBackFrictionMax()
setCallBackFrictionMin()

getJointOmega() meybe rad/s?

PJani

05-03-2009 14:38:36

What type of acceleration is setCallBackAccel?
Angular?