Contact sensor#

Query target: CONTACT_SENSOR. These are static capabilities; the live session decides which objects and operations are available. See session semantics and write behavior.

Shapes describe tensor dimensions; lanes describe the tuple width, not an extra dimension. Ordering is row-major unless stated otherwise. CPU means host memory; scene device means CPU on CPU/readback scenes or CUDA on DirectGPU; CUDA requires CUDA. Symbolic sizes come from the live group.

Attribute

Access

Meaning

contactEventAnchorCount

read

the event’s contact points / friction anchors

contactEventAnchorImpulse

read

impulse, as reported (world)

contactEventAnchorPosition

read

position (world)

contactEventCollider

read

the sensor’s own collider prim

contactEventOtherBody

read

the other body’s prim

contactEventOtherCollider

read

the other collider’s prim

contactEventOtherProtoIndex

read

the collider’s instance index in its point instancer — its slot in protoIndices, not the prototype it selects — own / other (0xFFFFFFFF: not an instance)

contactEventPointCount

read

the event’s contact points / friction anchors

contactEventPointFaceIndex

read

triangle-mesh face index, own / other

contactEventPointImpulse

read

impulse, as reported (world)

contactEventPointMaterial

read

material prim, own / other

contactEventPointNormal

read

normal, as reported (world)

contactEventPointOtherFaceIndex

read

triangle-mesh face index, own / other

contactEventPointOtherMaterial

read

material prim, own / other

contactEventPointPosition

read

position (world)

contactEventPointSeparation

read

separation

contactEventProtoIndex

read

the collider’s instance index in its point instancer — its slot in protoIndices, not the prototype it selects — own / other (0xFFFFFFFF: not an instance)

contactEventSensorSide

read

the pair side (0 or 1) the sensor is

contactEventType

read

0 found, 1 lost, 2 persist

filteredContactCount

read

contact points from each filter’s body

filteredContactForce

read

per point: its normal force (see below)

filteredContactNormal

read

per point: its normal, as reported

filteredContactPoint

read

per point: its position

filteredContactSeparation

read

per point: its separation

filteredFrictionCount

read

friction anchors from each filter’s body

filteredFrictionForce

read

per anchor: its impulse / dt

filteredFrictionPoint

read

per anchor: its position

frictionContactForceMatrix

read

friction force from each filter’s body, same layout

netFrictionContactForce

read

the sensor’s friction-anchor impulses, summed, / dt

netNormalContactForce

read

the sensor’s contact-point impulses, summed, / dt

normalContactForceMatrix

read

normal force from each filter’s body; filter f at lanes 3f..3f+2

rawContactForce

read

per point: its normal force (see below)

rawContactNormal

read

per point: its normal, as reported

rawContactOtherBody

read

per point: the other body’s prim

rawContactPoint

read

per point: its position

rawContactSeparation

read

per point: its separation

contactEventAnchorCount#

i32; units: not applicable.

Access

Layout

Memory

Read

array, shape [events], 1 lanes

CPU

Read: requires Contact events.

contactEventAnchorImpulse#

f32; units: mass * distance / sec; frame: world; semantic: vector.

Access

Layout

Memory

Read

array, shape [event_anchors], 3 lanes

CPU

Read: requires Contact events.

contactEventAnchorPosition#

f32; units: distance; frame: world; semantic: point.

Access

Layout

Memory

Read

array, shape [event_anchors], 3 lanes

CPU

Read: requires Contact events.

contactEventCollider#

u64; units: not applicable.

Access

Layout

Memory

Read

array, shape [events], 1 lanes

CPU

Read: requires Contact events.

contactEventOtherBody#

u64; units: not applicable.

Access

Layout

Memory

Read

array, shape [events], 1 lanes

CPU

Read: requires Contact events.

contactEventOtherCollider#

u64; units: not applicable.

Access

Layout

Memory

Read

array, shape [events], 1 lanes

CPU

Read: requires Contact events.

contactEventOtherProtoIndex#

u32; units: not applicable.

Access

Layout

Memory

Read

array, shape [events], 1 lanes

CPU

Read: requires Contact events.

contactEventPointCount#

i32; units: not applicable.

Access

Layout

Memory

Read

array, shape [events], 1 lanes

CPU

Read: requires Contact events.

contactEventPointFaceIndex#

u32; units: not applicable.

Access

Layout

Memory

Read

array, shape [event_points], 1 lanes

CPU

Read: requires Contact events.

contactEventPointImpulse#

f32; units: mass * distance / sec; frame: world; semantic: vector.

Access

Layout

Memory

Read

array, shape [event_points], 3 lanes

CPU

Read: requires Contact events.

contactEventPointMaterial#

u64; units: not applicable.

Access

Layout

Memory

Read

array, shape [event_points], 1 lanes

CPU

Read: requires Contact events.

contactEventPointNormal#

f32; units: dimensionless; frame: world; semantic: normal.

Access

Layout

Memory

Read

array, shape [event_points], 3 lanes

CPU

Read: requires Contact events.

contactEventPointOtherFaceIndex#

u32; units: not applicable.

Access

Layout

Memory

Read

array, shape [event_points], 1 lanes

CPU

Read: requires Contact events.

contactEventPointOtherMaterial#

u64; units: not applicable.

Access

Layout

Memory

Read

array, shape [event_points], 1 lanes

CPU

Read: requires Contact events.

contactEventPointPosition#

f32; units: distance; frame: world; semantic: point.

Access

Layout

Memory

Read

array, shape [event_points], 3 lanes

CPU

Read: requires Contact events.

contactEventPointSeparation#

f32; units: distance.

Access

Layout

Memory

Read

array, shape [event_points], 1 lanes

CPU

Read: requires Contact events.

contactEventProtoIndex#

u32; units: not applicable.

Access

Layout

Memory

Read

array, shape [events], 1 lanes

CPU

Read: requires Contact events.

contactEventSensorSide#

i32; units: dimensionless.

Access

Layout

Memory

Read

array, shape [events], 1 lanes

CPU

Read: requires Contact events.

contactEventType#

i32; units: dimensionless.

Access

Layout

Memory

Read

array, shape [events], 1 lanes

CPU

Read: requires Contact events.

filteredContactCount#

i32; units: not applicable.

Access

Layout

Memory

Read

fixed, shape [objects], filter_count lanes

scene device

Read: requires DirectGPU warmup, Contact filters.

filteredContactForce#

f32; units: mass * distance / sec^2.

Access

Layout

Memory

Read

array, shape [elements], 1 lanes

scene device

Read: requires DirectGPU warmup, Contact filters.

filteredContactNormal#

f32; units: dimensionless; frame: world; semantic: normal.

Access

Layout

Memory

Read

array, shape [elements], 3 lanes

scene device

Read: requires DirectGPU warmup, Contact filters.

filteredContactPoint#

f32; units: distance; frame: world; semantic: point.

Access

Layout

Memory

Read

array, shape [elements], 3 lanes

scene device

Read: requires DirectGPU warmup, Contact filters.

filteredContactSeparation#

f32; units: distance.

Access

Layout

Memory

Read

array, shape [elements], 1 lanes

scene device

Read: requires DirectGPU warmup, Contact filters.

filteredFrictionCount#

i32; units: not applicable.

Access

Layout

Memory

Read

fixed, shape [objects], filter_count lanes

scene device

Read: requires DirectGPU warmup, Contact filters.

filteredFrictionForce#

f32; units: mass * distance / sec^2; frame: world; semantic: vector.

Access

Layout

Memory

Read

array, shape [elements], 3 lanes

scene device

Read: requires DirectGPU warmup, Contact filters.

filteredFrictionPoint#

f32; units: distance; frame: world; semantic: point.

Access

Layout

Memory

Read

array, shape [elements], 3 lanes

scene device

Read: requires DirectGPU warmup, Contact filters.

frictionContactForceMatrix#

f32; units: mass * distance / sec^2; frame: world.

Access

Layout

Memory

Read

fixed, shape [objects], 3 * filter_count lanes

scene device

Read: requires DirectGPU warmup, Contact filters.

netFrictionContactForce#

f32; units: mass * distance / sec^2; frame: world; semantic: vector.

Access

Layout

Memory

Read

fixed, shape [objects], 3 lanes

scene device

Read: requires DirectGPU warmup.

Separate child-collider rows exist only on CPU or GPU with CPU readback. DirectGPU omits them; standalone static collider rows remain but read zero force. Opposing friction-anchor forces cancel in the net vector, so it does not represent friction torque.

netNormalContactForce#

f32; units: mass * distance / sec^2; frame: world; semantic: vector.

Access

Layout

Memory

Read

fixed, shape [objects], 3 lanes

scene device

Read: requires DirectGPU warmup.

Separate child-collider rows exist only on CPU or GPU with CPU readback. DirectGPU omits them; standalone static collider rows remain but read zero force.

normalContactForceMatrix#

f32; units: mass * distance / sec^2; frame: world.

Access

Layout

Memory

Read

fixed, shape [objects], 3 * filter_count lanes

scene device

Read: requires DirectGPU warmup, Contact filters.

rawContactForce#

f32; units: mass * distance / sec^2.

Access

Layout

Memory

Read

array, shape [elements], 1 lanes

scene device

Read: requires DirectGPU warmup.

rawContactNormal#

f32; units: dimensionless; frame: world; semantic: normal.

Access

Layout

Memory

Read

array, shape [elements], 3 lanes

scene device

Read: requires DirectGPU warmup.

rawContactOtherBody#

u64; units: not applicable.

Access

Layout

Memory

Read

array, shape [elements], 1 lanes

scene device

Read: requires DirectGPU warmup.

rawContactPoint#

f32; units: distance; frame: world; semantic: point.

Access

Layout

Memory

Read

array, shape [elements], 3 lanes

scene device

Read: requires DirectGPU warmup.

rawContactSeparation#

f32; units: distance.

Access

Layout

Memory

Read

array, shape [elements], 1 lanes

scene device

Read: requires DirectGPU warmup.

Conditions#

Contact events#

CPU/readback contact event data only; DirectGPU events are unsupported. Per-event counts partition point and anchor arrays.

Contact filters#

Requires a contact query with filters; element ordering and companion counts identify each filter partition.

DirectGPU warmup#

Device-backed DirectGPU state requires a completed first step; a write never warms the simulation automatically.