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 |
|---|---|---|
read |
the event’s contact points / friction anchors |
|
read |
impulse, as reported (world) |
|
read |
position (world) |
|
read |
the sensor’s own collider prim |
|
read |
the other body’s prim |
|
read |
the other collider’s prim |
|
read |
the collider’s instance index in its point instancer — its slot in |
|
read |
the event’s contact points / friction anchors |
|
read |
triangle-mesh face index, own / other |
|
read |
impulse, as reported (world) |
|
read |
material prim, own / other |
|
read |
normal, as reported (world) |
|
read |
triangle-mesh face index, own / other |
|
read |
material prim, own / other |
|
read |
position (world) |
|
read |
separation |
|
read |
the collider’s instance index in its point instancer — its slot in |
|
read |
the pair side (0 or 1) the sensor is |
|
read |
0 found, 1 lost, 2 persist |
|
read |
contact points from each filter’s body |
|
read |
per point: its normal force (see below) |
|
read |
per point: its normal, as reported |
|
read |
per point: its position |
|
read |
per point: its separation |
|
read |
friction anchors from each filter’s body |
|
read |
per anchor: its impulse / dt |
|
read |
per anchor: its position |
|
read |
friction force from each filter’s body, same layout |
|
read |
the sensor’s friction-anchor impulses, summed, / dt |
|
read |
the sensor’s contact-point impulses, summed, / dt |
|
read |
normal force from each filter’s body; filter f at lanes 3f..3f+2 |
|
read |
per point: its normal force (see below) |
|
read |
per point: its normal, as reported |
|
read |
per point: the other body’s prim |
|
read |
per point: its position |
|
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.