physics.Joint
pykraken.physics.Joint Base class for all physics joints.
More about physics.Joint
A joint constrains the relative motion of two bodies. Joints are created
through the World's create_*_joint methods and can be destroyed manually
or when either attached body is destroyed.
At a glance
8 membersReference
PYTHON APIConstructor
methodphysics.Joint(/, *args, **kwargs)Initialize self. See help(type(self)) for accurate signature.
body_a
propertybody_a: physics.BodyThe first body attached to the joint.
body_b
propertybody_b: physics.BodyThe second body attached to the joint.
collide_connected
propertycollide_connected: boolWhether the connected bodies should collide with each other.
is_valid
propertyis_valid: boolIndicates whether the joint is not destroyed.
local_anchor_a
propertylocal_anchor_a: Vec2The local anchor point relative to body A's origin.
local_anchor_b
propertylocal_anchor_b: Vec2The local anchor point relative to body B's origin.
destroy
methoddestroy(self) -> NoneDestroy the joint manually.