2020-07-28 20:21:55 -07:00
|
|
|
|
[Planck.js API Doc](../README.md) › [Globals](../globals.md) › [JointOpt](jointopt.md)
|
|
|
|
|
|
|
|
|
|
|
|
# Interface: JointOpt
|
|
|
|
|
|
|
2021-04-16 17:10:15 +02:00
|
|
|
|
Joint definitions are used to construct joints.
|
|
|
|
|
|
|
2020-07-28 20:21:55 -07:00
|
|
|
|
## Hierarchy
|
|
|
|
|
|
|
|
|
|
|
|
* **JointOpt**
|
|
|
|
|
|
|
|
|
|
|
|
↳ [JointDef](jointdef.md)
|
|
|
|
|
|
|
|
|
|
|
|
↳ [DistanceJointOpt](distancejointopt.md)
|
|
|
|
|
|
|
|
|
|
|
|
↳ [FrictionJointOpt](frictionjointopt.md)
|
|
|
|
|
|
|
2021-04-16 17:10:15 +02:00
|
|
|
|
↳ [RevoluteJointOpt](revolutejointopt.md)
|
|
|
|
|
|
|
|
|
|
|
|
↳ [PrismaticJointOpt](prismaticjointopt.md)
|
|
|
|
|
|
|
2020-07-28 20:21:55 -07:00
|
|
|
|
↳ [GearJointOpt](gearjointopt.md)
|
|
|
|
|
|
|
|
|
|
|
|
↳ [MotorJointOpt](motorjointopt.md)
|
|
|
|
|
|
|
|
|
|
|
|
↳ [MouseJointOpt](mousejointopt.md)
|
|
|
|
|
|
|
|
|
|
|
|
↳ [PulleyJointOpt](pulleyjointopt.md)
|
|
|
|
|
|
|
|
|
|
|
|
↳ [RopeJointOpt](ropejointopt.md)
|
|
|
|
|
|
|
|
|
|
|
|
↳ [WeldJointOpt](weldjointopt.md)
|
|
|
|
|
|
|
|
|
|
|
|
↳ [WheelJointOpt](wheeljointopt.md)
|
|
|
|
|
|
|
|
|
|
|
|
## Index
|
|
|
|
|
|
|
|
|
|
|
|
### Properties
|
|
|
|
|
|
|
|
|
|
|
|
* [collideConnected](jointopt.md#optional-collideconnected)
|
|
|
|
|
|
* [userData](jointopt.md#optional-userdata)
|
|
|
|
|
|
|
|
|
|
|
|
## Properties
|
|
|
|
|
|
|
|
|
|
|
|
### `Optional` collideConnected
|
|
|
|
|
|
|
|
|
|
|
|
• **collideConnected**? : *boolean*
|
|
|
|
|
|
|
2021-05-11 18:30:36 -07:00
|
|
|
|
*Defined in [src/dynamics/Joint.ts:69](https://github.com/shakiba/planck.js/blob/acc3bd8/src/dynamics/Joint.ts#L69)*
|
2021-04-16 17:10:15 +02:00
|
|
|
|
|
|
|
|
|
|
Set this flag to true if the attached bodies
|
|
|
|
|
|
should collide.
|
2020-07-28 20:21:55 -07:00
|
|
|
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
|
|
|
|
### `Optional` userData
|
|
|
|
|
|
|
|
|
|
|
|
• **userData**? : *any*
|
|
|
|
|
|
|
2021-05-11 18:30:36 -07:00
|
|
|
|
*Defined in [src/dynamics/Joint.ts:64](https://github.com/shakiba/planck.js/blob/acc3bd8/src/dynamics/Joint.ts#L64)*
|
2021-04-16 17:10:15 +02:00
|
|
|
|
|
|
|
|
|
|
Use this to attach application specific data to your joints.
|