Nodo Proyectar rayos#

El nodo Proyectar rayos.

The Raycast node intersects rays from one geometry onto another. The source geometry is defined by the context of the node that the Raycast node is connected to. Each ray computes hit points on the target mesh and outputs normals, distances and any surface attribute specified.

Entradas#

Geometría objetivo

Geometry that rays are tested against.

Atributo

An optional field input evaluated on the Target Geometry that will be interpolated at the hit points. The resulting values are outputted with the Attribute output.

Posición original

The position from where to start each ray. By default, this is the same as if the Nodo Posición was connected.

Dirección del rayo

Direction of each ray from the starting position. The field is evaluated on the geometry from the context of the field evaluation, not the Target Geometry.

Longitud del rayo

Maximum distance a ray can travel before being considered «no hit».

Propiedades#

Mapeo

How attributes of the target mesh are mapped to the attribute values on the result geometry.

Interpoladas:

Vertex and corner attributes are interpolated smoothly, with a bilinear function.

Más Cercano:

Choose the value of the closest vertex without interpolating.

Salidas#

Es impacto

Boolean output that is true for each ray which has hit the Target Geometry.

Posición de impacto

The location of the intersection point with the target mesh.

Normal de impacto

The surface Normal vector at the hit location.

Distancia de impacto

The distance from the Source Position to the Hit Position. If the ray does not hit, the Ray Length is returned.

Atributo

Interpolated values of the Attribute input sampled at the Hit Position.