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


NameDescriptionType
body_aThe first body attached to the joint.Body
body_bThe second body attached to the joint.Body
collide_connectedWhether the connected bodies should collide with each other.bool
is_validIndicates whether the joint is not destroyed.bool
local_anchor_aThe local anchor point relative to body A's origin.Vec2
local_anchor_bThe local anchor point relative to body B's origin.Vec2

Methods


Destroy

destroy() None

Destroy the joint manually.