Get Position?

FlowCanvas Forums Support Get Position?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #860

    Hi All,

    Noob here to flowCanvas so please bare with me 🙂

    Trying to create a script to break a crate… so user runs into the crate, it plays a 1 shot, instantiates a broken crate prefab and then disables the crate. I had it working but somehow I broke it and not sure why…

    I am using a Get Position on the crate transform to get the locations of the crate, store that in a variable and then use that position to place the broken crate but for some reason it doesn’t seem to be getting the crate position, it remains at 0,0,0.

    Can someone tell me what I am doing wrong, or if there is a better way?

    The script pic is attached.


    You must be logged in to view attached files.

    Hello Dean,

    As far as the flowscript goes, I can’t see anything wrong with it. I even created a similar example here and it works as expected.
    Does the flowscript actually works when in playmode? Does the node connections get highlighted in yellow when the collision takes place?
    If not, one thing to make sure is set correctly, would be on the FlowScriptController inspector, the “OnEnable” setting would be set to “Enable Behaviour” and not “Do Nothing”. Maybe you’ve accidentally changed it?

    Let me know.

    Join us on Discord:


    Thanks, I got it working, for some reason the connecting line between Value and Get Position was greyed out even though the 2 items were both enabled. I just deleted the Get Position and re-added it and it worked fine 🙂


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