Tokamak Physics Thread 5

Blitz3D Forums/Blitz3D Userlibs/Tokamak Physics Thread 5

Get the directionvector from the center to the actual object.
Normalize the vector and call
TOKRB_SetForce RB,NormalX#*Grav*Mass,NormalY#*Grav*Mass,NormalZ#*Grav*Mass
This should make the object move away from the centre with respect to where in the sphere it is.
Don't forget to set the standard gravity to 0.