Jambobond
21-03-2010 21:01:59
Hi all,
Im new to Ogre and Ogre newt... and for that matter games programming in general
I have a ball which I want to 'roll' as I move around the screen... at present I can move the ball around quite freely using
body->addForce(force)
and I have what I would call a rubbish rolling mechanic using the same force that I apply to move...
body->addTorque(force);
but I want to make it roll correctly... as it would irl
I would Imagen that this is done by using collision between matID's but I'am not sure. Any Ideas?
Im new to Ogre and Ogre newt... and for that matter games programming in general
I have a ball which I want to 'roll' as I move around the screen... at present I can move the ball around quite freely using
body->addForce(force)
and I have what I would call a rubbish rolling mechanic using the same force that I apply to move...
body->addTorque(force);
but I want to make it roll correctly... as it would irl
I would Imagen that this is done by using collision between matID's but I'am not sure. Any Ideas?