Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: SlimeyOoze on February 24, 2022, 10:06:34 AM
-
Hello
I'm blocking out an idea. I have a player object that is of Rigid Body. Currently I have it moving automatically, always in a forward direction and it rotates at a press of a key and continues its journey. x always point forwards.
I've placed a ramp in its way and it quite natrually tilts and goes up it.
If a want it to go in any direction while its on that slope I currently have an iTween Rotate To action. This is working up to a point...
BUT...
When the object rotates, it doesn't take into account the already sloping angle of my object. My slope is at x30degrees, I press down and the iTween seems to be ignoring the current angle, setting my object to x90, rotating and then my object slams down back to x30 and loses control, toppling over.
Any ideas?
I've set the iTween to take the angle into consideration so when I press down my vector is x30, y180, z0 the rotation is smoother but my object then starts spinning out of control ( I don't have loop selected either )
Any suggestions.
Thank You.