Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Soliptic's avatar
Soliptic
Explorer
8 years ago

Moving Objects With Touch Thumbstick

I am trying to create a means for the player to move objects in the direction the thumbstick is pressed. I have the initial part working without issue. What I am running into is that when the player turn their head, forward is no longer forward, left and right are no longer left and right. How can I make it such that forward is always the way the player's eyes are looking?

I appreciate the help.

Regards.

2 Replies

Replies have been turned off for this discussion
  • weasel47's avatar
    weasel47
    Heroic Explorer
    I believe you just need to apply the player's rotation to your movement vector by multiplying it:
    Player's rotation * movement vector