I would like the green box to stop when it hits the yellow floor, but it goes through it.
// set window properties
SetWindowTitle( "Simple 3D Physics" )
SetWindowSize( 1024, 768, 0 )
// set display properties
SetVirtualResolution( 1024, 768 )
SetOrientationAllowed( 1, 1, 1, 1 )
SetScissor(0,0,0,0)
Create3DPhysicsWorld()
CreateObjectPlane( 2, 100, 50)
SetObjectColor( 2, 255, 255, 0, 255 )
RotateObjectLocalX( 2, 90 )
SetObjectPosition(2,0,-30,0)
CreateObjectBox( 3,10,10,10)
SetObjectPosition( 3,5.1,30,0 )
Create3DPhysicsDynamicBody( 3)
SetObjectShapeBox(3)
SetObjectColor( 3, 0, 255, 0, 255 )
SetCameraPosition( 1, 0,30,-80 )
SetCameraLookAt( 1, 0,10,0, 0 )
do
Print( ScreenFPS() )
Step3DPhysicsWorld()
Sync()
loop