Does anyone know whats the deal here?? Some Dark Phisics commands dont seem to work.
I need to check if a rigid body exists before i delete it but the function always returns 0... phy rotation commands dont seem to work too but thats another matter
function objectivecheck(startid,endid,bricksneeded)
for id = startid to endid
if phy get rigid body exist(id) = 1
if phy get rigid body linear velocity y(id) < -5
set object transparency id, 2
brickfader(id) = 100
endif
if brickfader(id) > 0
set alpha mapping on id, brickfader(id)
dec brickfader(id)
endif
if brickfader(id) = 0
phy delete rigid body id;
dec bricksneeded
endif
endif
next id
endfunction bricksneeded