API Documentation for:
Show:

b2AreaJointDef Class

Extends B2JointDef
Defined in: b2AreaJointDef:17
Module: Joints

Definitions for a b2AreaJoint which maintains the relationship between group of moving bodies so that they maintain a constant volume (area in 2D) between them.

Constructor

b2AreaJointDef

()

Defined in b2AreaJointDef:17

Methods

addBody

(
  • body
)
Void public

Defined in addBody:125

Parameters:

  • body B2Body

Returns:

Void:

Properties

dampingRatio

Float public

Defined in dampingRatio:58

The damping ratio. 0 = no damping, 1 = critical damping.

Default: 0.0

frequencyHz

Float public

Defined in frequencyHz:68

The mass-spring-damper frequency in Hertz. A value of 0 disables softness.

Default: 0.0

frequencyHz

B2World public

Defined in frequencyHz:87

The mass-spring-damper frequency in Hertz. A value of 0 disables softness.

Default: null

m_bodies

Array public

Defined in m_bodies:49

Default: []

type

Int public

Defined in type:78

Default: b2Joint.e_areaJoint