Compute Geometry Raycast Hits#
Compute geometry intersections with an input ray (currently supports mesh prims)
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 meshes 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 |
Prims (inputs:prims) |
|
Prims of interest (currently only supports mesh prims). Note: if this input is present, the Prims bundle input is ignored. |
None |
Metadata |
allowMultiInputs = 1 |
||
Prims bundle (optional) (inputs:primsBundle) |
|
The prims of interest as a bundle. It must be a bundle with one or more prim children. Currently only meshes prim are supported (sourcePrimType == ‘Mesh’). From each Mesh prim child reads: - ‘sourcePrimPath’ - ‘sourcePrimType’ - ‘points’ - ‘faceVertexIndices’ - ‘faceVertexCounts’ - ‘worldMatrix’ - ‘sourcePrimPath’ (and optionally ‘holeIndices’, ‘orientation’, ‘meshKey’ and ‘physics:approximation’) attributes |
None |
Distance (inputs:raycastRange) |
|
Raycast distance. Use negative for infinite. If omitted, infinity is used. |
None |
Outputs#
Name |
Type |
Descripton |
Default |
---|---|---|---|
Hit distances (outputs:distances) |
|
A list of distances from the origin to the points hit. |
None |
Exec Out (outputs:execOut) |
|
Output execution |
None |
Face Indexes (outputs:faceIndexes) |
|
A list of the face indexes of the points hit. |
None |
Normals (outputs:normals) |
|
A list of surface normals of the points hit. |
None |
Positions (outputs:positions) |
|
A list of positions of the points hit. |
None |
Prims hit (outputs:primsHit) |
|
A list of prims that are hit by the input ray. |
None |
Metadata#
Name |
Value |
---|---|
Unique ID |
omni.physx.graph.ImmediateComputeGeometryRaycastHits |
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,raycast,broadphase,immediate |
uiName |
Compute Geometry Raycast Hits |
__tokens |
{} |
Categories |
PhysX Immediate Queries |
Generated Class Name |
OgnPhysXImmediateComputeGeometryRaycastHitsDatabase |
Python Module |
omni.physxgraph |