Interface ConvexOptions

Hierarchy

Properties

angle?: number

Body-local angle of the shape.

See

angle

axes?: Vec2[]

Axes.

See

axes

collisionGroup?: number

Collision group for the shape

collisionMask?: number

Collision mask for the shape

collisionResponse?: boolean

Whether to produce contact forces when in contact with other bodies.

material?: Material

Material for the shape

position?: Vec2

Body-local position of the shape.

sensor?: boolean

Whether the shape is a sensor

See

sensor

type?: 2 | 1 | 4 | 8 | 16 | 32 | 64 | 128

The shape type.

vertices?: Vec2[]

Vertices defined in the local frame.