Add Relative Force Node seems to work on global axis?

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1098
    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.

    Attachments:
    You must be logged in to view attached files.
    #1100
    aiviator
    Participant

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

    Attachments:
    You must be logged in to view attached files.
    #1103
    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:
    Instantiate

    Let me know if that works for you.
    Cheers!

    Join us on Discord: https://discord.gg/97q2Rjh

    Attachments:
    You must be logged in to view attached files.
    #1108
    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.