Joint

Base class for all physics joints. 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
collide_connectedWhether the connected bodies should collide with each other.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
body_aThe first body attached to the joint.Body
body_bThe second body attached to the joint.Body
is_validIndicates whether the joint is not destroyed.bool

Methods


Destroy

destroy() None

Destroy the joint manually.