Hello everybody. I always try not to post here until i have really test the command, but now i can't manage with this...
limb direction x() and limb direction y() works perfectly, but limb direction z() is always returning zero.
I wonder if this is a known bug, or it just should work...
Here is some code to test. Thanks!
(You'll need some example media to work)
set display mode 800,600,16
sync on
sync rate 50
autocam off
load object "c:\temp.x",1
loop object 1,0,TOTAL OBJECT FRAMES(1)
set object speed 1,5000
position object 1,0,0,750
position camera -400,100,400
set ambient light 100
limb = 26
rotate camera 0,0,75,0
do
set cursor 0,0
print screen fps()
print limb direction x(1,limb)
print limb direction y(1,limb)
print limb direction z(1,limb)
x1# = limb position x(1,limb)
y1# = limb position y(1,limb)
z1# = limb position z(1,limb)
r1# = limb direction x(1,limb)
r2# = limb direction y(1,limb)
r3# = limb direction z(1,limb)
position object 1,0,mousey(),mousex()
rotate object 2,r1#,r2#,r3#
position object 2,x1#,y1#,z1#
if (spacekey()) then limb = limb + 2
if (rightkey()) then turn object right 1,5
if (leftkey()) then turn object left 1,5
sync
loop
I am trying to add a object to a limb, but i cannot use glue object to limb (that works), because i need to check the object collision. Thanks!