physics.WeldJoint
pykraken.physics.WeldJoint A joint that rigidly connects two bodies at an anchor point.
More about physics.WeldJoint
The weld joint attempts to keep the bodies at a fixed relative position and angle. Optionally supports linear and angular springs to allow some flex. Useful for breakable structures or soft connections between bodies.
Inherits Joint
At a glance
12 membersReference
PYTHON APIConstructor
methodphysics.WeldJoint(/, *args, **kwargs)Initialize self. See help(type(self)) for accurate signature.
angular_damping_ratio
propertyangular_damping_ratio: floatThe angular spring damping ratio.
angular_hz
propertyangular_hz: floatThe angular spring frequency in Hertz.
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.
linear_damping_ratio
propertylinear_damping_ratio: floatThe linear spring damping ratio.
linear_hz
propertylinear_hz: floatThe linear spring frequency in Hertz.
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.