Is there a limit?

oracle1124

16-12-2007 00:11:23

Hi,

I have just started trying to learn how to use OgreNewt and how to implement it, but I have a problem with limits.

As per the screenshot, I have loaded up simple terrain mesh and thrown some balls at it, but all the balls seem to have a set range on where they fall. Is this some sort of limit pre set into OgreNewt or Newton? If so, how do I change it?



Also, I have changed the scale of the terrain mesh by setting:

Ogre::Vector3 siz(10.0, 1.0, 10.0);
floornode->setScale( siz );


But the same limits seems to apply only this time it is an area inside the terrain about the same size as running without the size changes. ie. the physics are not happening across the whole terrain, only within some area

Most of the OgreNewt code is based on the Ragdoll demo (Demo 8, without the ragdoll)

Thanks for any help

Ben

walaber

16-12-2007 07:22:28

the World object has limits, which you can set to anything you like with the setSize function.

it defaults to (-100,-100,-100) to (100,100,100)

oracle1124

16-12-2007 10:10:03

Thanks walaber, I knew it would be something stupid and overlooked ;)

Vectrex

16-12-2007 11:51:09

OgreNewt::World* mWorld;
mWorld->setWorldSize(Ogre::Vector3(-1000,-1000,-200),Ogre::Vector3(1000,1000,200));