Sharp Turn for physics vehicle?

Hello,



The physics vehicle always rolls when turning while running in great speed. My vehicle is something like a racing vehicle, although it is realistic that a race car rolls on sudden turns while running, I want a somehow fake effect… a race car that will not roll on sudden turns…



[java]physicsVehicle.setFrictionSlip(3)[/java] I put this setter and this makes my physics vehicle not to roll while turning… Problem is it makes a wide turn. I need a drifting / sharp turn triggered by a key. The same sharp turn effect in tux racer. Any ideas on how can I achieve this with physics vehicle??



Thank you.

Lower the center of mass. (see vehicle example)

I saw TestFancyCar did not roll. But I cant see how to set the center of mass… Is it set on the contructor of the physicsVehicle?? or while adding the wheels?

http://code.google.com/p/jmonkeyengine/source/browse/branches/jme3/src/test/jme3test/bullet/TestPhysicsCar.java

[java title=“excerpt”]

//create a compound shape and attach the BoxCollisionShape for the car body at 0,1,0

//this shifts the effective center of mass of the BoxCollisionShape to 0,-1,0

CompoundCollisionShape compoundShape = new CompoundCollisionShape();

BoxCollisionShape box = new BoxCollisionShape(new Vector3f(1.2f, 0.5f, 2.4f));

compoundShape.addChildShape(box, new Vector3f(0, 1, 0));

[/java]