Markness
10-09-2006 00:09:54
Heyas all, ive been trying to get my character to walk smoothly up hills / over uneven terrain and found something possibly wrong.
These are the two ways ive been creating the characters physics primitive:
Example 1
Example 2
As you can see, the only difference is the fourth parameter 'pos' which according to the OgreNewt documentation is:
So this should do little if anything to the way in which the object interacts with the world, correct?
If i use example 2 (which has a simple Y offset) the object will fall thro the ground quite often, but if i use example 1 it never falls through....
Any suggestions as to why this is happening?
These are the two ways ive been creating the characters physics primitive:
Example 1
OgreNewt::Collision* col = new OgreNewt::CollisionPrimitives::Ellipsoid( PhyWorld, Ogre::Vector3( 0.5, 0.5, 0.5 ), tempWynd->GetSceneNode()->getOrientation() );
Example 2
OgreNewt::Collision* col = new OgreNewt::CollisionPrimitives::Ellipsoid( PhyWorld, Ogre::Vector3( 0.5, 0.5, 0.5 ), tempWynd->GetSceneNode()->getOrientation(), Ogre::Vector3( 0.0F, 1.0F, 0.0F ) );
As you can see, the only difference is the fourth parameter 'pos' which according to the OgreNewt documentation is:
pos position offset of the primitive
So this should do little if anything to the way in which the object interacts with the world, correct?
If i use example 2 (which has a simple Y offset) the object will fall thro the ground quite often, but if i use example 1 it never falls through....
Any suggestions as to why this is happening?