OmniGraph Node omni.physx.graph.SceneQuerySweepSphereClosest

omni.physx.graph.SceneQuerySweepSphereClosest Properties

Name

Value

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

Sweep, Sphere, Closest

__tokens

{}

__categories

Omni PhysX Scene Queries

__exclusions

python,tests

Generated Class Name

OgnPhysXSceneQuerySweepSphereClosestDatabase

Python Module

omni.physxgraph

omni.physx.graph.SceneQuerySweepSphereClosest Description

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

omni.physx.graph.SceneQuerySweepSphereClosest Inputs

Name

Type

Default

Required?

Descripton

inputs:bothSides

bool

False

Y

Sets whether backfaces of colliders should be included in checks.

uiName

Both sides

__default

false

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:radius

[‘double’, ‘float’]

None

Y

Sphere radius

uiName

Radius

inputs:sweepRange

[‘double’, ‘float’]

None

Y

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

uiName

Range

omni.physx.graph.SceneQuerySweepSphereClosest 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.

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 material at the points 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.