NewtonCollisionAPI (contact offset fallbacks)#

Newton contact margin and gap, read for every collider as fallbacks for the PhysX rest and contact offsets when those are absent.

  • Applies to: Gprim

  • Requires on the same prim: PhysicsCollisionAPI

  • No usd-schemas gate: the consumer reads these columns whenever they exist on the prim, applied or not. Listing the API is still what the producer does and what the builders write.

What USD population writes#

Published like any applied API when the Newton schema is registered for population; without the registration its attributes are lost (see the ovphysx Newton schema notes).

Columns#

Raw fallback is the USD schema value. Producer writes is what ovstage population puts in the column for a USD stage. Parser default applies on the consumer when the column is absent, in stage units. diverges means writing the raw fallback literally parses differently from omitting the column (the parser default): USD population may well publish that very value for an unauthored attribute, so the marker is about the column being present, not about its value.

Column

Type

Units

Raw fallback

Producer writes

Parser default

If absent

newton:contactMargin

float32

length

0.0

resolved USD value (authored, else raw fallback)

no override

No override: the PhysX rest offset stands.

newton:contactGap

float32

length

-inf

resolved USD value (authored, else raw fallback)

no override

No override: the PhysX contact offset stands.

Notes#

  • The parser reads these columns without checking that NewtonCollisionAPI is listed in usd-schemas. The compiled cache reads them but does not support the API: a prim that lists NewtonCollisionAPI makes the cache bypass.

  • Newton’s schema makes PhysicsCollisionAPI built-ins of this API, and USD population lists built-ins among a prim’s applied schemas. The builder writes only what the caller applies, so it requires them on the same prim instead of writing a prim the walker would not recognize.