Raycasting gives 0,0 0,0 0,0

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

Tagged: 

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

    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?

    Attachments:
    You must be logged in to view attached files.
    #2301
    Gavalakis
    Keymaster

    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 🙂

    Thanks!

    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.