Vehicle example steering

3 views
Skip to first unread message

John Brookes

unread,
Jul 23, 2011, 8:24:02 AM7/23/11
to bulletf...@googlegroups.com
Been playing with the vehicle demo and just wondering on the steering.
Both the front wheels steer angle is the same when they should be slightly different (ackerman steering).
Don't know if that would make any difference to the physics? but at low speeds you can see the wheel dragging.

Also drive forward turn hard right and press the space bar, the car dips on the right front when you would expect it to be the left front. Not sure if thats because of the above.

ps if you scale the UVs you need to set material.animateUVs = true.

John Brookes

unread,
Jul 23, 2011, 9:50:41 AM7/23/11
to bulletf...@googlegroups.com
Just realised the steering is set for each wheel by the user so I an do the ackerman thang.

The google docs show a skidInfo. Is that implemented?

Li yang

unread,
Jul 23, 2011, 11:56:53 AM7/23/11
to bulletf...@googlegroups.com
I have not tried all parameters, I think it should be work by setting wheelinfo.

John Brookes

unread,
Jul 23, 2011, 12:43:27 PM7/23/11
to bulletf...@googlegroups.com
yeah looked in BtWheelInfo and theres no get set for skid (that I can see)

From the docs
/// Output: the amount of grip the wheels have with the driving
surface.
/// 0.0 = wheels are sliding, 1.0 = wheels have traction.
/// Use to trigger sliding sounds, dust trails, skid marks etc.
btScalar m_skidInfo;


Another thing Away3D4Mesh expects a mesh. A model Im using has a few parts for the vehicle body, mainly so I can use a different specular on different parts, so the mesh parts are grouped into an objectConatiner3D.
eg
var carBody:btRigidBody = new btRigidBody(carShape, new Away3D4Mesh(ObjectContainer3D(myVehicle)), 800);

Changed the Away3D4Mesh.as to do3d:ObjectContainer3D same with the get mesh.

No idea if that breaks anything else but everything still working for me and I can pass either a mesh or oc3d.


And
This thing is awsesome. Well done to all :)

ringodotnl

unread,
Jul 23, 2011, 3:29:23 PM7/23/11
to Bulletflash.dev
Aloha John,

Glad you like it so far John ! Can you post a link if you have some
results, we love to see that!
Credit on this one goes fully to Li well most done so far he did :)

Cheers,
Ringo.
Reply all
Reply to author
Forward
0 new messages