Why does the ball fall straight through the model? And what sort of collision (boxes/capsules etc...) should i be using for the roller coaster model (see screen)?
SYNC RATE 50 : SYNC ON
PHY START
LOAD OBJECT "coaster1.x",1
COLOR OBJECT 1,RGB(255,0,0)
PHY MAKE RIGID BODY STATIC CAPSULES 1
MAKE OBJECT SPHERE 2,15
POSITION OBJECT 2,0,126,60
PHY MAKE RIGID BODY DYNAMIC SPHERE 2
time_factor as float
DO
TEXT 0,0,STR$(CAMERA POSITION X())
TEXT 0,16,STR$(CAMERA POSITION Y())
TEXT 0,32,STR$(CAMERA POSITION Z())
TEXT 0,48,"-------------"
IF SCREEN FPS()<>0
time_factor = 50.0/SCREEN FPS()
ENDIF
IF KEYSTATE(17) = 1 THEN MOVE CAMERA 10.0*time_factor
IF KEYSTATE(31) = 1 THEN MOVE CAMERA -10.0*time_factor
ROTATE CAMERA CAMERA ANGLE X()+(MOUSEMOVEY()*0.5),CAMERA ANGLE Y()+(MOUSEMOVEX()*0.5),0
PHY UPDATE
SYNC
LOOP