Raycast, All#

Outputs the rigid bodies and colliders that are hit by the input ray.

Installation#

To use this node enable omni.physx.graph in the Extension Manager.

Inputs#

Name

Type

Descripton

Default

Both sides (inputs:bothSides)

bool

Sets whether backfaces of colliders should be included in checks.

False

Direction (inputs:direction)

['vectord[3]', 'vectorf[3]']

Ray direction vector

None

Exec In (inputs:execIn)

execution

Input execution

None

Origin (inputs:origin)

['pointd[3]', 'pointf[3]']

Ray origin

None

Distance (inputs:raycastRange)

['double', 'float']

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

None

Sort by distance (inputs:sortByDistance)

bool

Enable to sort outputs by distance.

False

Outputs#

Name

Type

Descripton

Default

Body Prim Paths (deprecated) (outputs:bodyPrimPaths)

token[]

A list of paths of the associated body prims for the collider prims that are hit by the input ray. Deprecated, please use the Body Prims output instead.

None

Body Prims (outputs:bodyPrims)

target

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

None

Collider Prim Paths (deprecated) (outputs:colliderPrimPaths)

token[]

A list of paths of the collider prims that are hit by the input ray. Deprecated, please use the Collider Prims output instead.

None

Collider Prims (outputs:colliderPrims)

target

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

None

Hit distances (outputs:distances)

float[]

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

None

Exec Out (outputs:execOut)

execution

Output execution

None

Face Indexes (outputs:faceIndexes)

int[]

A list of the face indexes of the points hit.

None

Material Paths (deprecated) (outputs:materialPaths)

token[]

A list of paths of the physics materials at the points hit. Deprecated, please use the Material Prims output instead.

None

Material Prims (outputs:materialPrims)

target

A list of physics material Prims at the points hit.

None

Normals (outputs:normals)

normalf[3][]

A list of surface normals of the points hit.

None

Positions (outputs:positions)

pointf[3][]

A list of positions of the points hit.

None

Metadata#

Name

Value

Unique ID

omni.physx.graph.SceneQueryRaycastAll

Version

1

Extension

omni.physx.graph

Has State?

False

Implementation Language

C++

Default Memory Type

cpu

Generated Code Exclusions

python, tests

tags

physics,physx,simulation,collision

uiName

Raycast, All

__tokens

{}

Categories

PhysX Scene Queries

Generated Class Name

OgnPhysXSceneQueryRaycastAllDatabase

Python Module

omni.physxgraph