[Physics] Setting 'Absolute' Rotation

Blitz3D Forums/Blitz3D Programming/[Physics] Setting 'Absolute' Rotation

TomFeatherhill(Posted 2014) [#1]
I'm getting a few hiccups in rotation and ETC. If I turn the wrong corner, in my game, gravity would go the other way and pull me up to space or it just pulls me down the wrong way.

My game, although those elements would make the perfect rage game, is not designed to do so. I want to find the property that defines the rotation of an object, so that I could change it. Here's a little code to try and explain;

Player.rotation = 0,0,0 ;Pseudo-code


Thank you to anyone that would understand!


RemiD(Posted 2014) [#2]
Here :

Get :
http://www.blitzbasic.com/b3ddocs/command.php?name=EntityPitch&ref=3d_a-z
http://www.blitzbasic.com/b3ddocs/command.php?name=EntityYaw&ref=3d_a-z
http://www.blitzbasic.com/b3ddocs/command.php?name=EntityRoll&ref=3d_a-z

Set :
http://www.blitzbasic.com/b3ddocs/command.php?name=RotateEntity&ref=3d_a-z


TomFeatherhill(Posted 2014) [#3]
Thanks RemiD! It works just fine!