OmniGraph Node Raycast, Closest

Properties

Name

Value

Unique ID

omni.physx.graph.SceneQueryRaycastClosest

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, Closest

__tokens

{}

__categories

PhysX Scene Queries

__exclusions

python,tests

Generated Class Name

OgnPhysXSceneQueryRaycastClosestDatabase

Python Module

omni.physxgraph

Description

Finds the closest collider that is hit by the input ray.

Inputs

Name

Type

Default

Required?

Descripton

inputs:bothSides

bool

False

Y

Sets whether backfaces of colliders should be included in checks.

uiName

Both Sides

inputs:direction

[‘vectord[3]’, ‘vectorf[3]’]

None

Y

Ray direction vector

uiName

Direction

inputs:execIn

execution

None

Y

Input execution

inputs:origin

[‘pointd[3]’, ‘pointf[3]’]

None

Y

Ray origin

uiName

Origin

inputs:raycastRange

[‘double’, ‘float’]

None

Y

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

uiName

Distance

Outputs

Name

Type

Default

Required?

Descripton

outputs:bodyPrimPath

token

None

Y

Path of the associated body prim of the closest collider prim hit by the input ray.

outputs:colliderPrimPath

token

None

Y

Path of the closest collider prim that is hit by the input ray.

uiName

Collider Prim path

outputs:distance

float

None

Y

The distance from the origin to the point hit.

uiName

Hit Distance

outputs:execOut

execution

None

Y

Output execution

outputs:faceIndex

int

None

Y

The face index of the point hit.

outputs:hit

bool

None

Y

Returns true if any colliders are hit by the input ray.

outputs:materialPath

token

None

Y

Path of the physics material at the point hit.

outputs:normal

normalf[3]

None

Y

The surface normal of the point hit.

outputs:position

pointf[3]

None

Y

The position of the point hit.