PCG World Ray Hit Query - Ray Properties

Wondering if anyone has some insight into the World Ray Hit Query node in PCG specifically the 2 Ray parameters you can set.

I’m currently working on a project where I am trying to sample a spherical dynamic mesh. Given I’d idealy to be able to update the PCG as the mesh updates I thought a solution would be a couple of PCG instances using Work Ray Hit nodes with the Rays Direction parameter set to match it’s need.

The issue is the parameters don’t seem to work as I’d expected. The origin is fine as this seems to tally with my expectation that this is the point from which the rays are sent.

But I can’t figure out the direction parameter. Simplifying to a cube use case

With the origin above the cube and a direction of -1 in the Z I get points on top of the cube:

With the origin bellow the cube and a direction of 1 in the Z I get points on bottom of the cube:

Simple! But in any other direction the same logic does not hold.

With the Origin to the left of the cube and the ray direction set to -1 in the Y I get no points. This is the same for both the X and Y.

Have I misinturpreted how these parameters work? I can find little to no litreature on the parameters.