what to choose?

bravery

25-05-2006 14:29:19

I Have a ball object and I wont to controll it using keyboard and mouse.
my question is: I wont to apply physics to it so what is the best collision I can implemnet to it?

does the collsionPrimitive work?

and is the OgreNewt::CollisionPrimitives::ConvexHull or OgreNewt::CollisionPrimitives::Capsule will be the best option?

and I have a level which contain planes and bridges and some bridges are attached to each other so what is the best collsion I should apply tp the level geometry? is it TreeCollision?

thanks in advance?

walaber

26-05-2006 07:36:05

for the ball: OgreNewt::CollisionPrimitives::Ellipsoid

for the world OgreNewt::CollisionPrimitives::TreeCollision

bravery

26-05-2006 10:57:19

thanks walaber

but I have a biggener question

to create a collision for Ellipsoid I need to know the size of the ball (imported mesh) how can I know that?

bravery

26-05-2006 20:44:51

let me explain my question agine:

I wont to use this function:

Ellipsoid (const World *world, const Ogre::Vector3 &size, const Ogre::Quaternion &orient=Ogre::Quaternion::IDENTITY, const Ogre::Vector3 &pos=Ogre::Vector3::ZERO)

the scened parameter is:
size vector representing radius for all 3 axis

my problem is how can I get the exact size (second parameter) for any object in my scene?

thanks in advance

walaber

26-05-2006 21:50:44

you can get an idea from the bounding box for the object...