Using rotate to angle for a meteor effect
digitalzero
Member, BASIC Posts: 639
I'm trying to figure out how to have the object rotate to the angle to kind of create a meteor effect.... I knew how to do this before but i completely forgot here's what I'm trying to do...
Comments
"how to have the object rotate to the angle" ?
What is 'the angle' ?
Your image shows two meteors, both labelled as head, not sure what information this is conveying ?
Are you trying to rotate the actor to match the direction it's moving?
Or it will always face the direction it's moving?
Or how to move an actor in an arc pattern?
Like this ?
Yeah I'm trying to get them to turn to the direction they are going hahaha damn I'm horrible at explaining lol
Use a constrain attribute:
self.rotation to: vectorToAngle(self.Motion.LinearVelocity.X,self.Motion.LinearVelocity.Y)
Exactly what i needed!!! Thank you!!!
You are welcome!