Sweep, Sphere, All

Returns a list of prim paths of all colliders that are hit by the input sweep.

Installation

To use this Node, you must enable omni.physx.graph in the Extension Manager.

Inputs

Name

Type

Description

Default

execIn

execution

Input execution

Origin (origin)

pointf[3], pointd[3]

Ray origin

Direction (direction)

vectorf[3], vectord[3]

Ray direction vector

Radius (radius)

float, double

Sphere radius

Distance (sweepRange)

float, double

Sweep distance. Use negative for infinite. If omitted, infinity is used.

Both Sides (bothSides)

bool

Sets whether backfaces of colliders should be included in checks.

False

Sort By Distance (sortByDistance)

bool

Enable to sort outputs by distance.

False

Outputs

Name

Type

Description

Default

execOut

execution

Output execution

Collider Prim Paths (colliderPrimPaths)

token[]

A list of paths of the collider prims that are hit by the input sweep.

Body Prim Paths (bodyPrimPaths)

token[]

A list of paths of the associated body prims for the collider prims that are hit by the input sweep.

positions

pointf[3][]

A list of positions of the points hit.

normals

normalf[3][]

A list of surface normals of the points hit.

Hit Distances (distances)

float[]

A list of distances from the origin to the points hit.

faceIndexes

int[]

A list of the face indexes of the points hit.

materialPaths

token[]

A list of paths of the materials at the points hit.