Joint
API reference for Joint. Access via the 'physics' submodule.
Experimental API:
The physics submodule is a VERY experimental and new API that is highly susceptible to breaking changes in the future.
Properties
| Name | Description | Type |
|---|---|---|
body_a | The first body attached to the joint. | Body |
body_b | The second body attached to the joint. | Body |
collide_connected | Whether the connected bodies should collide with each other. | bool |
is_valid | Indicates whether the joint is not destroyed. | bool |
local_anchor_a | The local anchor point relative to body A's origin. | Vec2 |
local_anchor_b | The local anchor point relative to body B's origin. | Vec2 |
Methods
Destroy
destroy() → NoneDestroy the joint manually.