Okay so I have an object I need to rotate with an offset. I just need to pin the rotation spot at the top and do a simple change of angle around that point. Say move it to 20degs and stop. I'd like to use the rotate to angle behavior. @Socks @RThurman
Comments
@Lost_Oasis_Games, afraid I can't offer much help, I'm just writing to say I'm so excited to see that I'm not the only one who needs help with math at times!
It's obvious, Dave.
Hop on Skype Dave, I have something I made that might help, but I didn't polish up enough to want to post it on the forums just yet. I'm popping out for a few minutes but will be around most of the afternoon.
Constrain the X position to A *cos( self.Rotation )+BX
Constrain the Y position to A *sin ( self.Rotation )+BY
Rotate to Angle / 20° (relative to actor)
A = radius of the circle, BX and BY are the position for the pivot within the scene.
When you place the circle in the scene, point it downwards (-90°)
Example project:
Here is an automated version, just place the red pivot point where you want in relation to the actor (or move the actor around in relation to the pivot point) and the rotation is worked out for you.
Here is yet another way:
http://forums.gamesalad.com/discussion/comment/468609/#Comment_468609
@Socks just posted pretty much exactly what I was going to offer, so along with @RThurman's alternative method you look well covered now
Well. Don't even try my method guys. I just found out it didn't work.
...
:P
Ultimately it does @Braydon_SFX , it puts the onus on the user to rotate their phone.
@Hopscotch
Thanks guys going to try it out now. I totally suck at vector math.