I am having difficulties with this evil vectorY stuff... What I'm trying to do is set the players look half way between what he really moved in 0.1 secs.... So I:
The problem is my Y axis keeps going back to 1.0 or -1.0... what am I doing wrong![http://forums.massassi.net/html/frown.gif [http://forums.massassi.net/html/frown.gif]](http://forums.massassi.net/html/frown.gif)
(sorry for the scroll)
[This message has been edited by Hellcat (edited February 06, 2002).]
Code:
setpulse(0.1); pulse: pulse: playerz_1 = VectorY(GetThingLvec(player)); sleep(0.05); plrotation = VectorSet(VectorX(GetThingLvec(player)), ((VectorY(GetThingLvec(player)) - VectorY(playerz_1)) / 2) + VectorY(GetThingLvec(player)), VectorZ(GetThingLvec(player))); SetThinglook(player, plrotation); Return;
The problem is my Y axis keeps going back to 1.0 or -1.0... what am I doing wrong
![http://forums.massassi.net/html/frown.gif [http://forums.massassi.net/html/frown.gif]](http://forums.massassi.net/html/frown.gif)
(sorry for the scroll)
[This message has been edited by Hellcat (edited February 06, 2002).]