planck-js
Version:
2D JavaScript physics engine for cross-platform HTML5 game development
77 lines (40 loc) • 1.74 kB
Markdown
[Planck.js API Doc](../README.md) › [Globals](../globals.md) › [JointDef](jointdef.md)
# Interface: JointDef
## Hierarchy
* [JointOpt](jointopt.md)
↳ **JointDef**
↳ [DistanceJointDef](distancejointdef.md)
↳ [FrictionJointDef](frictionjointdef.md)
↳ [GearJointDef](gearjointdef.md)
↳ [MotorJointDef](motorjointdef.md)
↳ [MouseJointDef](mousejointdef.md)
↳ [PrismaticJointDef](prismaticjointdef.md)
↳ [PulleyJointDef](pulleyjointdef.md)
↳ [RevoluteJointDef](revolutejointdef.md)
↳ [RopeJointDef](ropejointdef.md)
↳ [WeldJointDef](weldjointdef.md)
↳ [WheelJointDef](wheeljointdef.md)
## Index
### Properties
* [bodyA](jointdef.md#bodya)
* [bodyB](jointdef.md#bodyb)
* [collideConnected](jointdef.md#optional-collideconnected)
* [userData](jointdef.md#optional-userdata)
## Properties
### bodyA
• **bodyA**: *[Body](../classes/body.md)*
*Defined in [joint/index.d.ts:56](https://github.com/shakiba/planck.js/blob/038d425/lib/joint/index.d.ts#L56)*
___
### bodyB
• **bodyB**: *[Body](../classes/body.md)*
*Defined in [joint/index.d.ts:57](https://github.com/shakiba/planck.js/blob/038d425/lib/joint/index.d.ts#L57)*
___
### `Optional` collideConnected
• **collideConnected**? : *boolean*
*Inherited from [JointOpt](jointopt.md).[collideConnected](jointopt.md#optional-collideconnected)*
*Defined in [joint/index.d.ts:52](https://github.com/shakiba/planck.js/blob/038d425/lib/joint/index.d.ts#L52)*
___
### `Optional` userData
• **userData**? : *any*
*Inherited from [JointOpt](jointopt.md).[userData](jointopt.md#optional-userdata)*
*Defined in [joint/index.d.ts:51](https://github.com/shakiba/planck.js/blob/038d425/lib/joint/index.d.ts#L51)*