Have Actor Move In The Direction The Camera Is Facing

Discussion in 'How Can I...?' started by SofaKing, Dec 1, 2020.

  1. SofaKing

    SofaKing Boxer

    Joined:
    Oct 16, 2020
    Messages:
    11
    Likes Received:
    4
    How can I get it so my Actor moving forward changes in the direction the camera is looking at? Right now I have it so "W" moves 5 on the X axis. I'd like it to move in the direction the camera is facing. I use "A" and "D" to move the camera around.
     
    AppNasty likes this.
  2. AppNasty

    AppNasty Miniboss Boxer

    Joined:
    Apr 14, 2016
    Messages:
    1,484
    Likes Received:
    890
    SofaKing likes this.
  3. SofaKing

    SofaKing Boxer

    Joined:
    Oct 16, 2020
    Messages:
    11
    Likes Received:
    4
    Thanks that did help.
     
    AppNasty likes this.
  4. AppNasty

    AppNasty Miniboss Boxer

    Joined:
    Apr 14, 2016
    Messages:
    1,484
    Likes Received:
    890
    I have a custom version that makes it so you collide with objects. The normal version you just walk through objects and theres no way to stop it. But this custom code does. Let me know if you need it.
     
    SofaKing likes this.
  5. SofaKing

    SofaKing Boxer

    Joined:
    Oct 16, 2020
    Messages:
    11
    Likes Received:
    4
    Yeah, that would be great. Thank you!
     

Share This Page