CLASS v1.8.0

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.

Reference

PYTHON API
physics.Joint(/, *args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

body_a

property
body_a: physics.Body

The first body attached to the joint.

body_b

property
body_b: physics.Body

The second body attached to the joint.

collide_connected: bool

Whether the connected bodies should collide with each other.

is_valid

property
is_valid: bool

Indicates whether the joint is not destroyed.

local_anchor_a: Vec2

The local anchor point relative to body A's origin.

local_anchor_b: Vec2

The local anchor point relative to body B's origin.

destroy

method
destroy(self) -> None

Destroy the joint manually.

Find your next step

Start typing to search the manual.