Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CircleOptions

Hierarchy

Index

Properties

Optional density

density: number

The density of the shape.

Optional filter

filter: { category?: number; group?: number; mask?: number }

A collision filter of the shape

Type declaration

  • Optional category?: number
  • Optional group?: number
  • Optional mask?: number

Optional friction

friction: number

The friction of shape. Must be in range 0...Infinity.

Optional isSensor

isSensor: boolean

A flag that indicates whether a body is a sensor. Sensors does not react with other bodies but triggers collision events.

Optional mass

mass: number

The mass of the shape.

Optional radius

radius: number

A rounding radius of the shape(radius of circle, radius of capsule, ...).

Optional restitution

restitution: number

The restitution(elasticity) of the shape. Must be in range 0...1. A value of 0 means that the body will not bounce at all. A value of 1 means that the body may bounce with 100% of its kinetic energy.

Optional surfaceVelocity

surfaceVelocity: number

The surface velocity of the shape. Useful for creating conveyor belts.

Generated using TypeDoc