Ground friction on Car

Software: Away3D 4.x

jtopaz, Member
Posted: 06 March 2012 08:55 AM   Total Posts: 53

I try to to adjust fiction for the car.
AWPVehicleTuning frictionSlip works with no problem.

But my problem is I want to update friction when the car drive on different ground texture (e.g. concrete vs grass)
I change the AWPRigidBody friction for different ground texture, it don’t have any effect on the Car (it only have effect on normal object).
Any solution?
Thanks alot.

   

John Brookes, Moderator
Posted: 06 March 2012 03:19 PM   Total Posts: 732   [ # 1 ]

AFAIK.
The vehicle doesn’t actually have any rigidbody wheels. It uses a raycast. Setting friction has no effect on the wheels (or any I’ve ever noticed)
When you set the friction, thats friction between the carbody and ground or whatever it hits.

Only way I can think of is to shoot your own ray down and read the friction off the collisionObject and use it to set the frictionslip of the wheels.

A bit silly creating your own rays when its already doing the raycast, but cant see a way to get the collsion object from AWPRaycastInfo. Although bullet does have m_groundObject but no idea how to get it.

   

jtopaz, Member
Posted: 09 March 2012 05:58 AM   Total Posts: 53   [ # 2 ]

Thank John,
I think I can only use this way.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X