Raycast, Closest#
Finds the closest collider that is 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) |
|
Sets whether backfaces of colliders should be included in checks. |
False |
Direction (inputs:direction) |
|
Ray direction vector |
None |
Exec In (inputs:execIn) |
|
Input execution |
None |
Origin (inputs:origin) |
|
Ray origin |
None |
Distance (inputs:raycastRange) |
|
Raycast distance. Use negative for infinite. If omitted, infinity is used. |
None |
Outputs#
Name |
Type |
Descripton |
Default |
---|---|---|---|
Body Prim (outputs:bodyPrim) |
|
Associated body prim of the closest collider prim hit by the input ray. |
None |
Body Prim Path (deprecated) (outputs:bodyPrimPath) |
|
Path of the associated body prim of the closest collider prim hit by the input ray. Deprecated, please use the Body Prim output instead. |
None |
Collider Prim (outputs:colliderPrim) |
|
Closest collider prim that is hit by the input ray. |
None |
Collider Prim Path (deprecated) (outputs:colliderPrimPath) |
|
Path of the closest collider prim that is hit by the input ray. Deprecated, please use the Collider Prim output instead. |
None |
Hit Distance (outputs:distance) |
|
The distance from the origin to the point hit. |
None |
Exec Out (outputs:execOut) |
|
Output execution |
None |
Face Index (outputs:faceIndex) |
|
The face index of the point hit. |
None |
Hit (outputs:hit) |
|
Returns true if any colliders are hit by the input ray. |
None |
Material Path (deprecated) (outputs:materialPath) |
|
Path of the physics material at the point hit. Deprecated, please use the Material Prim output instead. |
None |
Material Prim (outputs:materialPrim) |
|
Physics material Prim at the point hit. |
None |
Normal (outputs:normal) |
|
The surface normal of the point hit. |
None |
Position (outputs:position) |
|
The position of the point hit. |
None |
Metadata#
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 |
Generated Class Name |
OgnPhysXSceneQueryRaycastClosestDatabase |
Python Module |
omni.physxgraph |