How to control the physics


#1

myproject: https://playcanvas.com/project/598370/overview/my-first-project

Click left arrow or right arrow to control the direction of car.
I hope the car will be knocked over when it broadside against the wall; but ,now,the car only have been stoped.
I don’t know how to do this function,there is no any docs to help me …,


#2

Depends on the speed, angle and point of impact of impact. Generally when a vehicle (in real life) hits a full height wall on the side, it will stop and not roll over.

If you want to apply extra forces on it to do something different, you have to experiment with applying torque and forces at different positions on the vehicle.


#3

Yes,I understand .I will try, thank you very much


#4

thank you very much ,I will try