Vehicle Physics - Collision Problem

aravindh007

31-03-2006 14:05:07

Hi, I'm new to this forum, I have integerated newton and ogre sucessfully :D , but when i replaced my vehicle object , i also tried to change the collision size of my object, when i changed it in x,z it takes good result, but when i changed in y axis, the vehicle stoped moving, actually the collision system starts from the bottom(base of the object), how to solve this issue..
Thankyou
Aravindh

OgreNewt::Collision* col = new OgreNewt::CollisionPrimitives::Box( mWorld,Ogre::Vector3(10,1,10) );

yan007

13-04-2006 17:37:26

in the demo's from OgreNewt you can press 'F3' to see the collision objects,

maybe the problem is you have to move the position of your collision box, because its reaches further then your wheels (the wheels dont have contact anymore with the floor)

aravindh007

17-04-2006 13:27:51

hi , i got the problem solved earlier itself.

OgreNewt::Collision* col4 = new OgreNewt::CollisionPrimitives::Box( mWorld,Ogre::Vector3(10,3,5),Ogre::Quaternion(),Ogre::Vector3(0,2,0) );


By this code change, thanks again
Aravindh :D