API Documentation for:
Show:

b2JointFactory Class

Defined in: b2JointFactory:17
Module: Joints

Constructor

b2JointFactory

() static

Defined in b2JointFactory:17

Item Index

Methods

Methods

create

(
  • jointDef
  • [allocator]
)
b2Joint public static

Defined in create:25

Parameters:

  • jointDef B2JointDef
  • [allocator] optional

Returns:

destroy

(
  • joint
  • [allocator]
)
Void public

Defined in destroy:118

Override this method to define your joint destruction behaviour.

Callback function called during World.step upon b2Joint destruction. body.destroyJoint(){ b2JointFactory.destroy() }

Parameters:

  • joint b2Joint
  • [allocator] optional

Returns:

Void: