There is a 3d example in the files that lets a small box fall on a big box with physics.
That works fine.
Now I changed it to spheres.
The problem is that the ball falls and then stops above the big ball en won't tumble like the example bloks.
Even if I change the x and z position of the small ball.
Look at the code:
// Project: 3d_testZone spheres
// Created: 2015-12-13
// set window properties
SetWindowTitle( "3d_testZone spheres" )
SetWindowSize( 1024, 768, 0 )
// set display properties
SetVirtualResolution( 1024, 768 )
SetOrientationAllowed( 1, 1, 1, 1 )
Create3DPhysicsWorld()
CreateObjectSphere(1,10,12,12)
CreateObjectSphere(2,5,12,12)
SetObjectPosition(2,0,10,0)
CreateObjectPlane(5,60,60)
RotateObjectGlobalX(5,90)
SetObjectPosition(5,0,-10,0)
Create3DPhysicsStaticBody(1)
SetObjectShapeSphere(1)
SetObjectShapeSphere(2)
SetObjectColor(1,255,0,0,255)
SetObjectColor(5,0,255,0,255)
SetObjectPosition(1,7,0,5)
Create3DPhysicsDynamicBody(2)
SetCameraPosition(1,0,20,-60)
SetCameraLookAt(0,0,10,0,0)
do
Print( ScreenFPS() )
Step3DPhysicsWorld()
Sync()
loop
I changed some codes, but can't figure out what I am doing wrong. Can somebody please give a tip.