I ran a test, and got the same results. It didn't fall but it was unsteady.
I don't know if you can do this, but I added a fixed joint between each block and it was much more stable.
SetScreenResolution(GetDeviceWidth(), GetDeviceHeight())
SetVirtualResolution(GetDeviceWidth(), GetDeviceHeight())
SetWindowSize(1024,768,1)
Create3DPhysicsWorld(1)
v = createvector3()
oFloor = CreateObjectBox(10,1,10)
Create3DPhysicsStaticBody(ofloor)
for i = 1 to 10
CreateObjectBox(i,1,1,1)
SetObjectColor(i, random(128,255),random(128,255),random(128,255), 255)
SetObjectPosition(i,0, i,0)
Create3DPhysicsDynamicBody(i)
SetObjectShapeBox(i)
if i > 1
SetVector3(v, 0,i-0.5,0)
null = Create3DPhysicsFixedJoint(i,i-1,v)
endif
next i
SetCameraPosition(1,0,8,-30)
SetCameraLookAt(1, 0,5,0,0)
do
if GetRawKeyReleased(32) = 1
exit
endif
sync()
loop
do
if GetRawKeyPressed(32) = 1
end
endif
Step3DPhysicsWorld()
sync()
loop
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt