set up bicycle?

njw1985

20-05-2008 13:25:17

can anyone tell me how to set up one bicycle in nxogre?

betajaen

20-05-2008 14:01:18

Two wheels attached to a thin cube? You may want to invest in some angular damping or a NX_BF_FROZEN_ flag to stop the bike toppling over.

njw1985

20-05-2008 14:27:57

thin cubebody or another body is better? and how to control it?

betajaen

20-05-2008 14:34:04

A Cube. By adding torque and steering the front wheel. How else would you move a bicycle?

njw1985

21-05-2008 01:13:49

"How else would you move a bicycle?"---I am a newer and finding a good way to solve it?

njw1985

21-05-2008 10:44:04

I set up bicycle body and two tires,but the result is the bike fall down.
How can I make it stand up?

betajaen

21-05-2008 11:22:05

You may want to invest in some angular damping or a NX_BF_FROZEN_ flag to stop the bike toppling over.

njw1985

21-05-2008 12:43:58

OK,,I will try,,thanks!!!!

njw1985

23-05-2008 02:02:40

I set up NX_BF_FROZEN_ROT to my bike,but I can't use wheel object to control my bike like this:

// turn left or right
wheelfront->turn(Ogre::Degree(1)); /* Wheel *wheelfront; */

// stop or move
wheelfront->setBrakeTorque(0);
wheelback->setBrakeTorque(0);
wheelfront->setMotorTorque(10);
wheelback->setMotorTorque(10);

How to moveã€

betajaen

23-05-2008 11:02:04

Those. You don't freeze all of the rotation you just freeze one part of it. Y I think.

Fred

23-05-2008 16:29:14

But Y is the rotation of your bike. you will probably need it. I would freeze X. You will also need a Z-rotation, because your bike has to lean into the bend. So you have to simulate some centripedal force.

njw1985

24-05-2008 01:40:05

Oh,,Yeah,,Thank you very much for all your reply!!!

njw1985

21-06-2008 14:36:43

But Y is the rotation of your bike. you will probably need it. I would freeze X. You will also need a Z-rotation, because your bike has to lean into the bend. So you have to simulate some centripedal force.

I agree with you,,but how to to simulate some centripedal force?

Fred

22-06-2008 00:46:35

As far I remember, the mathematical formual for the centripedal force is: F=m*v²/r

So you have to add this force to your body.
Perhabs this could help: http://en.wikipedia.org/wiki/Centripedal_force