Hey, can someone with a bit more knowledge of DP look at this for me? Why dosen't the cube in this snippet rotate correctly?
Make object Cube 1,5
phy start
phy set gravity 0,0,0
Phy Make rigid body dynamic box 1
Do
If Upkey() =1 Then Pitch Object Down 1,0.5
If Downkey() =1 Then Pitch Object Up 1,0.5
If Leftkey() =1 Then Turn Object Left 1,0.5
If Rightkey() =1 Then Turn Object Right 1,0.5
Phy Set rigid body Rotation 1,Object Angle x(1),Object Angle y(1),Object Angle z(1)
phy update
Loop
To get it to move at all, you need to press two arrow keys at the same time, but even then, it won't rotate corectly.
Thanks,
-Sunflash
Mountain Dew, happyness in a bottle.