Add Relative Force Node seems to work on global axis?

Forums 💬 FlowCanvas ⚙️ Support Add Relative Force Node seems to work on global axis?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #22402
    aiviator
    Participant

      Hi,
      I’ve been working at solving a problem I have with using Flowscript and a simple bullet spawn from a playerweapon.
      Somehow the bullets that are spawned are fired in the global z direction everytime. I’d like the bullets to use the local direction of where the player is looking at.
      The first flowscript is bound to the bulletprefab, the second is bound to the playerweapon.

      I’m trying to learn how to use flowscript, so any help on this is appreciated.

      #22405
      aiviator
      Participant

        Somehow my first post did not add the two screenshots….

        #22404
        Gavalakis
        Keymaster

          Hey,

          What you would want to do, is instantiate the bullet at the same rotation as the parent object has, so that the bullet has the same world orientation, otherwise, the bullet is simply instantiated with 0,0,0 rotation. 🙂

          Here is what I mean for your convenience:
          [attachment file=”Instantiate.png”]

          Let me know if that works for you.
          Cheers!

          #22403
          aiviator
          Participant

            Yes, that worked for me!

            Thanx!

          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.