#Moving vehicles
1 messages · Page 1 of 1 (latest)
forces (I prefer linearforces) and a lot of math
do you have a video or tut where I can read more on this?
They just mimic the same physics a real version of it does
I.e. a car: force pushing down (gravity), force pushing up (springs), sideways force (centrifugal, momentum, grip) and forwards/backwards (technically given as torque when being realistic, but for a cartoony car you can just have a linear forwards/backwards motion)
Space ships have roughly the same forces. Sideways to prevent uncontrolled drifts, upwards/downwards (just to counteract gravity and to else make the ship not infinitely float to one direction. Also good for giving the player control over it), then forwards/backwards and some rotational force to allow it to rotate
so using cframe?
(interpolation to lessen calculations can be done later)
vector3, linear forces take vector3