If I drop a rigidbody box to the flat ground it comes to rest and its linearvelocity gets near to zero, as expected.
If I do the same thing with a raycastvehicle it comes to rest too but its linearvelocity never gets to zero!
I guess the suspension force is setting the linearvelocity since it is in its direction (upwards in my case). This can be seen in the forklift demo aswell.
Is this a known issue (or rather correct behaviour)?
Raycastvehicle velocity problem
-
- Posts: 5
- Joined: Tue Oct 20, 2020 8:03 am
Re: Raycastvehicle velocity problem
Two workarounds I figured out, if anyone interested:
* Get linearvelocity from other rigidbody constraint connected to the raycastvehicle.
* Modify updateAction in btRaycastVehicle to store copy of linearvelocity before updateVehicle is called.
* Get linearvelocity from other rigidbody constraint connected to the raycastvehicle.
* Modify updateAction in btRaycastVehicle to store copy of linearvelocity before updateVehicle is called.