BasisCurves (spline surface velocity path)#

A curve the runtime reads only as the path of PhysxSplinesSurfaceVelocityAPI: when a body’s physxSplinesSurfaceVelocity:surfaceVelocityCurve targets a BasisCurves below it, the runtime tessellates the curve into a sampled polyline that contact modification projects contacts onto. The target is recognised by its prim type, never by an applied schema.

What USD population writes#

The curve carries no physics schema. The ovstage release the runtime pins publishes a BasisCurves that a body’s surfaceVelocityCurve targets, with points, curveVertexCounts, type, basis and wrap, under the physics population description alone (its relationship-target selector).

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

points

float32[3] array, POINT

length

not written

No control points: the runtime warns that the BasisCurves prim defines no points, the curve stays uninitialized and the body simulates without spline surface velocity.

curveVertexCounts

int32 array

none

not written

One curve made of every point. Otherwise each entry is the control-point count of one curve, taken from points in order; a curve with too few control points for its basis and wrap logs a warning and leaves the whole prim unused.

type

uint64, TOKEN_ID

none

cubic

resolved USD value (authored, else raw fallback)

cubic

cubic: the control points are evaluated through basis. Only the token linear is matched; any other token reads as cubic. A linear curve is a polyline through every point that ignores basis and reports no curvature.

basis

uint64, TOKEN_ID

none

bezier

resolved USD value (authored, else raw fallback)

bspline diverges

bspline: the runtime starts from B-spline and only the tokens bezier and catmullRom change it, so an absent column, the token bspline and any unknown token all read as B-spline. USD resolves the unauthored attribute to bezier and USD population publishes it, so only a Stage that omits the column gets B-spline.

wrap

uint64, TOKEN_ID

none

nonperiodic

resolved USD value (authored, else raw fallback)

nonperiodic

nonperiodic: an open curve. The tokens periodic (a closed loop) and pinned are matched as well; any other token reads as nonperiodic.

Interactions#

  • PhysxSplinesSurfaceVelocityAPI: Only the first surfaceVelocityCurve target is used, and only when it is a BasisCurves below the body; otherwise the runtime logs the specific cause, at load and when surfaceVelocityEnabled is switched on later. The tessellated curve is cached per curve prim, and live changes to its columns are not applied.

Notes#

  • The runtime does not check curveVertexCounts against the number of points: counts that add up to more than points has, or a negative count, index past the end of the points array.