Topic: Adding gravity to a planet
Hey! Now I'm doing a script for planetary gravity.
core = getObject(core)
planet = getObject(planet)
player = getObject(player)
playerpos = getPosition(player)
corepos = getPosition(core)
gravity = {playerpos[1] - corepos[1], playerpos[2] - corepos[2], playerpos[3] - corepos[3]}
Thinking that the player will be drawn to the core of the planet by subtracting there co-ordinates all the time, and that the physics-enabled-planet will provide ground to collide with.
This is my idea, but it doesn't work.