#Moving vehicles

1 messages · Page 1 of 1 (latest)

idle egret
#

I tried Cframe but it noclips through objects and feels static. if I want to make like an spaceship with kind of like an drag movement flight what should I use?

gritty hatch
idle egret
gritty hatch
#

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

idle egret
#

yeah but im confused on how to implement it

#

im tryna make a hot air balloon rn

gritty hatch
#

Just a lot of math taking place each frame

#

Then applying forces based off of that

idle egret
#

so using cframe?

gritty hatch
#

(interpolation to lessen calculations can be done later)

gritty hatch