question about gravity in 3d

Blitz3D Forums/Blitz3D Beginners Area/question about gravity in 3d

moving things twoards the center of a sphere if not as easy as simply move things down. Usually I only need to:
translateentity player,0,-.2,0

to move the character 0.2 units towards the ground.

If you would like to have a spherical gravity, you could create a pivot in the center of the planet, then do the following:

a_p#=entitypitch(player,1)
a_y#=entityyaw(player,1)
a_r#=entityroll(player,1)
pointentity player, center
moveentity player,0,0,0.2
rotateentity player a_p,a_y,a_r,1


Of course, whatever you do, you need to set up a proper collision handling unless you plan to sink into the ground.