I'm intrigued, the object does not fall[solved]

mako

16-03-2007 16:59:37

I'm really intrigued.

in the example
in http://www.ogre3d.org/wiki/index.php/Ne ... e_Dynamics
that walaber writes about starting with physics, he build a cylinder to fall and collides to a box which represents a floor.
on the line
bod->setPositionOrientation( Ogre::Vector3(-2,80,2), Ogre::Quaternion::IDENTITY );

he sets the position of the cylinder.
wit the vector "Vector3(-2,80,2)" and it works fine
but if I use y > 100 like Vector3(-2,110,2), the cylinder do not fall.
I'm really intrigued. what's going on?

mako

16-03-2007 17:08:49

well, I understand now

I needed to set the world size to be higher then 100 that might be the default value.

mWorld->setWorldSize(Vector3(-2000,-100,-2000),Vector3(2000,1000,2000));

now I can set positions with y <=1000 that it will fall.

I hope to help someone with this topic