Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CapsuleOptions

Options for creating a Capsule

Hierarchy

Index

Properties

angle?: number

Body-local angle of the shape.

see

Shape.angle

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

length?: number

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

see

Capsule.length

material?: Material

Material for the shape

see

Shape.material

position?: Vec2

Body-local position of the shape.

see

Shape.position

radius?: number

Radius of the capsule.

see

Capsule.radius

sensor?: boolean

Whether the shape is a sensor

see

Shape.sensor