[Bug?] faulty mesh rotation in WheelMachinePart::simulate

SolidSnake

04-05-2010 21:48:43

Hello,

I am working with NxOgre 1.5.4 'Bloody Mess'.
Using the Machine Class to create a vehicle simulation I recognized a faulty rotation speed of the renderable. The visualisation of the WheelMachinePart rotates 1000 times faster than it's actor.
I fixed this by replacing NxOgreWheelMachinePart.cpp (Line 58):
mWheelRollAngle += wheel->getAxleSpeed() * time;by
mWheelRollAngle += wheel->getAxleSpeed() * (time/1000);

I think it's strange, because it seems to be decent to multiply the axle speed by the delta time.

Best Regards,

Andre