Closed Dante-666 closed 4 years ago
The movement model is pretty simple. It is supposed to work out like a car.
Add forces to the body and expect it to roll while obeying friction laws.
Friction was added and that creates normal rolling motion. Added controls for left and right motion and it seems to work fine. But we need some type of local heading and bearing data which would be easier to work with. Having a local coordinate frame which is tied to the player node and it is only allowed to rotate about the x-axis. These calculations needs a lot of work.
This effectively works although there is something wrong and causes the simulation to stop for some reason. I am guessing this is the Physics engine failing for some setting. The local coordinates are a good point to start with and the motion has to be refined a bit but let's work on these as separate issues.
Adding a central force to the rigid body doesn't work out too well.
Things to explore next would be to add friction and how that works.
Also explore Impulse force and Tangential force to see how things work.