Announcement

Collapse
No announcement yet.

Rotate my blueprint actor towards character in 2d world

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Rotate my blueprint actor towards character in 2d world

    im using this so far :
    Click image for larger version

Name:	rot_towards.JPG
Views:	1
Size:	45.2 KB
ID:	1136413

    i seem to have to multiple by -1 when my character is one side of the actor and not on the other side
    am i doing something wrong or is this correct logic ?

    if( player.Location.X > actor.Location.X) { value *= -1 }
    basically ^

    the rotation seems to snap weirdly, i think ive got this a little bit wrong
    Last edited by axelZellalex; 07-05-2014, 02:18 PM.
Working...
X