Space Ship GamePlay With Real Dynamic Gravity

https://www.babylonjs-playground.com/#13ZDU8#20

use " q,w,e,a,s,d " to rotate
x for slow down speed
space to run

6 Likes

Wow, nice @nasimiasl!

1 Like

Optimize a bit for touch
now i most make some real ship
https://www.babylonjs-playground.com/#13ZDU8#38

1 Like

i opened it but could not figure out what the gameplay is?

hey @shaderBytes
it is just new move with new Gravity
gravity :
i define V (for vector). F ( for Force ) O ( for Object )
O have FS (array of Force )

you need define Mass and radius for any planet

any object can have 2 kind force
1 the fixed force β€œnew F( value , 3d direction vector)”
2 dynamic force changed in any frame β€œnew F(0.on(calculation Function )”

https://www.babylonjs-playground.com/#13ZDU8#42

then you can define any solar system and real gravity in space simulation

after that for define a movement ( gameplay) we need control 3d direction and use force for have spaceship simulation



speed ~190.000 in good direction i catch the Orbit

use β€˜c’ to change camera mode

https://www.babylonjs-playground.com/#13ZDU8#45

http://editor.5kb.me/#160339

3 Likes