No update after moving mesh?

SONB

17-04-2006 16:18:34

Hi!

There is a tutorial where an object is falling down to the ground.. well it works fine but when I move the object back to it's initial position it doesn't fall again, it doesn't move at all like there is no physics update...

These are the lines that make the object move upwards:

robotNode->translate(Ogre::Vector3(0, 30, 0));
robotBody->setPositionOrientation(Ogre::Vector3(0, 30, 0), Ogre::Quaternion::IDENTITY);


Did I miss something?


SONB

danharibo

17-04-2006 16:26:25

hit f3 to check where the collision bods are

praetor

17-04-2006 16:30:06

It fell to the ground and stopped? Auto freezing might be on. Once the body freezes you have to apply an impulse to it to unfreeze it, or you can manually unfreeze the body. Try putting it back to it start point and manually unfreezing it before dropping it again.

danharibo

17-04-2006 16:32:34

or mworld->setautofreeze(flase)
well ithink that is it

SONB

17-04-2006 17:06:47

Wow thanx a lot for your replies!

Hm how can I apply an impulse to the body?

And I tried to deactivate the autofreeze for the body, now it falls through the ground.