Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ConvexOptions

Hierarchy

Index

Properties

angle?: number

Body-local angle of the shape.

see

Shape.angle

axes?: Vec2[]

Axes.

see

Convex.axes

collisionGroup?: number

Collision group for the shape

see

Shape.collisionGroup

collisionMask?: number

Collision mask for the shape

see

Shape.collisionMask

collisionResponse?: boolean

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

see

Shape.collisionResponse

material?: Material

Material for the shape

see

Shape.material

position?: Vec2

Body-local position of the shape.

see

Shape.position

sensor?: boolean

Whether the shape is a sensor

see

Shape.sensor

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

The shape type.

vertices?: Vec2[]

Vertices defined in the local frame.

see

Convex.vertices