Get Character Direction

Blitz3D Forums/Blitz3D Beginners Area/Get Character Direction

YellBellzDotCom(Posted 2008) [#1]
Howdy all.
I need to get the direction my character is facing (Vector?) when a user hits wsad keys. The Character moves fine, of course its a sphere for now so I cant tell which way its actually facing.

Heres some code...




GfK(Posted 2008) [#2]
DeltaYaw()


LedgerARC(Posted 2008) [#3]
maybe you could use a different object, or use:
entitypitch#(ply.plyr(0)\modl,1),entityyaw#(ply.plyr(0)\modl,1),entityroll#(ply.plyr(0)\modl,1).
Other than that I don't know how to get the rotation of the character, as far as where the character is facing, probably a vector command would work, but I don't know much about those.


YellBellzDotCom(Posted 2008) [#4]
I now use objects to point the model at depending on which direction he is facing. I then use a variable to store the direction and send that across the network. Everything works great except the lag :(