Using rotate to angle for a meteor effect

digitalzerodigitalzero 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

  • SocksSocks London, UK.Member Posts: 12,822

    "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 ?

  • GnarlyGnarly canadaMember Posts: 840

    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?

  • SocksSocks London, UK.Member Posts: 12,822

    Like this ? :p

  • digitalzerodigitalzero Member, BASIC Posts: 639

    Yeah I'm trying to get them to turn to the direction they are going hahaha damn I'm horrible at explaining lol

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,880

    Use a constrain attribute:
    self.rotation to: vectorToAngle(self.Motion.LinearVelocity.X,self.Motion.LinearVelocity.Y)

  • digitalzerodigitalzero Member, BASIC Posts: 639

    Exactly what i needed!!! Thank you!!!

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,880

    You are welcome!

Sign In or Register to comment.