Actually, none of the commands work except for the ray cast, the hit command and getting the object. Here's an example:
phy start
autocam off
sync on
sync rate 60
color backdrop 0
position camera 0, 20, -70
phy set gravity 0,0,0
make object cube 1, 5
position object 1, 0, -10, 0
phy make rigid body static box 1
make object cube 2, 5
position object 2, -15, 0, 0
phy make rigid body static sphere 2
make object cube 3, 5
position object 3, 15, 10, 0
phy make rigid body dynamic box 3
phy set rigid body angular velocity 3,0,0,1
make object cube 4, 5
position object 4, 0, 20, 0
make object box 5, 1, 15, 1
position object 5, 0, 15, 0
do
for i = 1 to 5
color object i, 0
next i
x# = object position x ( 4 )
y# = object position y ( 4 )
z# = object position z ( 4 )
temp = phy ray cast all shapes(x#,y#,z#,0,-1,0)
if phy get ray cast hit() = 1
color object phy get ray cast object(),rgb(0,0,255)
text 1,1,"Object: " + str$(phy get ray cast object())
text 1,11,"Distance: " + str$(phy get ray cast distance())
text 1,21,"Hit X: " + str$(phy get ray cast hit point x())
text 1,31,"Hit Y: " + str$(phy get ray cast hit point y())
text 1,41,"Hit Z: " + str$(phy get ray cast hit point z())
text 1,51,"Normal X: " + str$(phy get ray cast hit normal x())
text 1,61,"Normal Y: " + str$(phy get ray cast hit normal y())
text 1,71,"Normal Z: " + str$(phy get ray cast hit normal z())
text 1,81,"Triangle TU: " + str$(phy get ray cast tu())
text 1,91,"Triangle TV: " + str$(phy get ray cast tv())
endif
if inkey$() = "a"
move object left 4, 0.4
move object left 5, 0.4
endif
if inkey$() = "d"
move object right 4, 0.4
move object right 5, 0.4
endif
phy update
sync
loop
