Raycasting gives 0,0 0,0 0,0

FlowCanvas Forums Support Raycasting gives 0,0 0,0 0,0


Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #2296

    I’m trying to find the x,y,z of a clicked position. Setup is as shown on the screenshot. When I click on the objects it only gives 0,0 0,0 0,0.

    All objects are on default layer.

    What am I missing here?

    You must be logged in to view attached files.

    Hello and sorry for the late reply due to Easter.

    The problem here, is that the “Physics.Raycast” node is never called.
    A node such as this (which returns a “Value”), is called only when the “Value” port is fetched/used.
    There is though another way and that is to explicitely call the node with a Flow Connection.
    To do that, you need to select the node and enable the “Callable” option in it’s inspector. Once you do that you will notice that the node will now have two extra ports, one for Flow Input and another for Flow Output. As such, you will be able to call the node as normal.

    If you need more help with this please let me know and I will provide a specific example 🙂


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

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