| Blockland Forums > Modification Help |
| Deg To Rad not working correctly? |
| << < (2/4) > >> |
| Kalphiter:
I know, --- Quote from: Kalphiter on November 06, 2011, 10:09:44 AM ---I have no idea why it works --- End quote --- |
| Kalphiter:
It appears to be that the max value for yaw is between 1335 and 1336. Anything over that number makes you do a 180. |
| Truce:
I feel like yaw() is what's bound to your mouse - use $mvYaw = X instead. For example, if I remember right, $mvYaw = $pi / 2 turns you 90 degrees. |
| Demian:
--- Quote from: Truce on November 06, 2011, 12:56:57 PM ---I feel like yaw() is what's bound to your mouse - use $mvYaw = X instead. For example, if I remember right, $mvYaw = $pi / 2 turns you 90 degrees. --- End quote --- Indeed it does. It is slightly inaccurate though, after a couple of times it's off by a degree or so. How do I turn 360 degrees? --- Code: ---yaw($mvYaw=$pi*2); --- End code --- Is not working, it only turns 180 degrees. |
| Greek2me:
--- Quote from: Demian on November 06, 2011, 01:16:00 PM ---How do I turn 360 degrees? --- Code: ---yaw($mvYaw=$pi*2); --- End code --- Is not working, it only turns 180 degrees. --- End quote --- Do that twice? |
| Navigation |
| Message Index |
| Next page |
| Previous page |