Options
All
  • Public
  • Public/Protected
  • All
Menu

A fixture definition is used to create a fixture. This class defines an abstract fixture definition. You can reuse fixture definitions safely.

Hierarchy

  • b2FixtureDef

Index

Constructors

Properties

density: number

The density, usually in kg/m^2.

filter: b2FilterData

Contact filtering data.

friction: number

The friction coefficient, usually in the range [0,1].

isSensor: boolean

A sensor shape collects contact information but never generates a collision response.

restitution: number

The restitution (elasticity) usually in the range [0,1].

shape: b2Shape

The shape, this must be set. The shape will be cloned, so you can create the shape on the stack.

userData: any

Use this to store application specific fixture data.

Generated using TypeDoc