Why this code doesn't give error. Since object 1 doesn't exists, "phy delete rigid body 1" must send error message.
sync on
sync rate 60
set window on
set display mode 800,600, 32
phy start
make object sphere 1, 1
position object 1, 0, 6, 0
make object box 2, 30, .4, 40
color object 2, rgb(23, 23, 23)
`phy make rigid body dynamic sphere 1
phy make rigid body static box 2
phy delete rigid body 1
position object 1, 14, 7, -7
phy make rigid body dynamic sphere 1
position camera 0, 0, 12, -35
point camera 0,0,0
do
phy update
sync
loop
end
Is bug a possibility?
Now add this: phy delete rigid body 1000,
You get no error message. Here, you even don't have the object!
Any clue?