2021-05-11 18:30:36 -07:00

62 lines
1.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[Planck.js API Doc](../README.md) › [Globals](../globals.md) › [JointOpt](jointopt.md)
# Interface: JointOpt
Joint definitions are used to construct joints.
## Hierarchy
* **JointOpt**
↳ [JointDef](jointdef.md)
↳ [DistanceJointOpt](distancejointopt.md)
↳ [FrictionJointOpt](frictionjointopt.md)
↳ [RevoluteJointOpt](revolutejointopt.md)
↳ [PrismaticJointOpt](prismaticjointopt.md)
↳ [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*
*Defined in [src/dynamics/Joint.ts:69](https://github.com/shakiba/planck.js/blob/acc3bd8/src/dynamics/Joint.ts#L69)*
Set this flag to true if the attached bodies
should collide.
___
### `Optional` userData
• **userData**? : *any*
*Defined in [src/dynamics/Joint.ts:64](https://github.com/shakiba/planck.js/blob/acc3bd8/src/dynamics/Joint.ts#L64)*
Use this to attach application specific data to your joints.