phy start
sync on : sync rate 60
autocam off
position camera 0,20, -70
make object box 1,50,1,50
position object 1,0,45,0
phy make rigid body static box 1
make object box 2,10,10,1
position object 2,0,35,0
phy make rigid body dynamic box 2
make object box 3,10,10,1
position object 3,0,25,0
phy make rigid body dynamic box 3
make object box 4,10,10,1
position object 4,0,15,0
phy make rigid body dynamic box 4
make object cone 5,10
position object 5,0,5,0
phy make rigid body dynamic box 5
phy make sphere joint 1,1,2,0,45,0
phy make sphere joint 2,2,3,0,35,0
phy make sphere joint 3,3,4,0,25,0
phy make sphere joint 4,4,5,0,15,0
phy set sphere joint global anchor 1,2,0,65,0
phy build sphere joint 1
phy build sphere joint 2
phy build sphere joint 3
phy build sphere joint 4
do
if spacekey()=1
phy add rigid body force 5,9000,9000,9000,1
endif
sync
phy update
loop
Here is my code. I tested the simulation for 10 min and the joints never came to rest. Is there a way to set a max time for this simulation
edit: Press the spacebar to apply a force