Header menu logo Nu

ContourShape Type

The shape of a massless physics body in terms of a free form sequence of line segments. Collision occurs at its sides. When closed, the last link connects to the first. It is expected that self-intersection does not occur. It properly handles ghost collisions compared to multiple EdgeShapes: https://box2d.org/posts/2020/06/ghost-collisions/ Box2D and Aether.Physics2D call this a ChainShape, but it's not a physical chain.

Record fields

Record Field Description

Closed

Full Usage: Closed

Field type: bool
Field type: bool

Links

Full Usage: Links

Field type: Vector3 array
Field type: Vector3 array

PropertiesOpt

Full Usage: PropertiesOpt

Field type: BodyShapeProperties option
Field type: BodyShapeProperties option

TransformOpt

Full Usage: TransformOpt

Field type: Affine option
Field type: Affine option

Type something to start searching.