Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
hyperPad

hyperPad Forum

  1. Home
  2. Help and Support
  3. Move player forward In their direction

Move player forward In their direction

Scheduled Pinned Locked Moved Unsolved Help and Support
4 Posts 3 Posters 171 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • IAmPotatI Offline
    IAmPotatI Offline
    IAmPotat
    wrote on last edited by
    #1

    How would I move an object forwards or backwards of the direction its facing. Example: A cube is facing the right so want to move to the right. This mostly only affects top down games.

    1 Reply Last reply
    0
    • MurtazaM Offline
      MurtazaM Offline
      Murtaza
      Admin
      wrote on last edited by
      #2

      The built in Joystick controlled behaviour should handle this automatically. Make sure the "should flip" toggle is on.

      1 Reply Last reply
      1
      • IAmPotatI Offline
        IAmPotatI Offline
        IAmPotat
        wrote on last edited by
        #3

        Im trying to make a raycasting system, and i need to move a projectile out of a wall from where it came frim

        RobinsonXR 1 Reply Last reply
        0
        • IAmPotatI IAmPotat

          Im trying to make a raycasting system, and i need to move a projectile out of a wall from where it came frim

          RobinsonXR Offline
          RobinsonXR Offline
          RobinsonX
          wrote on last edited by
          #4

          @IAmPotat The Raycast Test behavior outputs a normal field. This is the angle that the ray would travel if it were to reflect. You can use this to rotate an object to that angle, and then use a Calculate Direction behavior to calculate the x_vector and y_vector from the center of the object to where it's facing. You can use those values to determine how much your object moves when a ray has intersected with an object.

          If you need help on how to use the behavior, this video has step-by-step examples:

          1 Reply Last reply
          2
          • IAmPotatI IAmPotat marked this topic as a question on

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Search