Forum Discussion
Weald_Spatial
Mar 04, 2024Brass Contributor
Physics Raycast not exposing the Hit result
In the Unity Visual Scripting graph the Physics Raycast node doesn't expose the Hit result output so I can get the distance from the origin to the collider. Here's a screenshot to show you what I mea...
Weald_Spatial
Mar 04, 2024Brass Contributor
I have confirmed that some nodes include the `Hit info` as an output and these are missing from the Mesh subset. Could somebody from the dev team explain why we can't use Raycasts and get the hit information?
- Weald_SpatialMar 05, 2024Brass ContributorWhilst I kinda understand not exposing this property in the SDK for security reasons, it would be better if they allowed us to access the Raycast Hit and restrict the options available from those nodes instead. So just allow us the Raycast Hit nodes that give us data like distance but not the target collision object as this could open up to accessing GameObjects they don't want you to meddle with.