Interface CapsuleOptions

Options for creating a Capsule

Hierarchy

Properties

angle?: number

Body-local angle of the shape.

See

angle

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.

length?: number

The distance between the end points, extends along the X axis.

See

length

material?: Material

Material for the shape

position?: Vec2

Body-local position of the shape.

radius?: number

Radius of the capsule.

See

radius

sensor?: boolean

Whether the shape is a sensor

See

sensor