solaris1912
21-03-2008 15:12:48
Hello!
In my racing game, I build my road using "TriangleMeshShape"s. I noticed something about suspension as I move along the circuit.
Here are the suspension values of the car
When the cars' all tires are at the same trianglemesh, suspension is very well. However, if one tire moves to another trianglemesh, then the suspension changes as if the suspension_spring value is too high (like 250000) and the body of car moves up a little bit. This is unacceptable for tha game because players feel like the car is jumping on the flat road.
Everything returns back to normal when all tires are at the same trianglemesh.
To test this, I changed the spring value to 250000 and that problem disappeared. But, the suspension effect is gone because 250000 is too high.
Shall I add all trianglemeshes to a one compound shape? Will that effect the performance? And may it solve the problem?
Thanks
In my racing game, I build my road using "TriangleMeshShape"s. I noticed something about suspension as I move along the circuit.
Here are the suspension values of the car
suspension_damper = 50
suspension_spring = 25000
suspension_target = 0.0
suspension_travel = 0.3
When the cars' all tires are at the same trianglemesh, suspension is very well. However, if one tire moves to another trianglemesh, then the suspension changes as if the suspension_spring value is too high (like 250000) and the body of car moves up a little bit. This is unacceptable for tha game because players feel like the car is jumping on the flat road.
Everything returns back to normal when all tires are at the same trianglemesh.
To test this, I changed the spring value to 250000 and that problem disappeared. But, the suspension effect is gone because 250000 is too high.
Shall I add all trianglemeshes to a one compound shape? Will that effect the performance? And may it solve the problem?
Thanks