Inheritance #

PinJoint3D
Table of contents

PinJoint3D #

is_instantiable, Node3D, Node, core, not_builtin_classes

A physics joint that attaches two 3D physics bodies at a single point, allowing them to freely rotate.

A physics joint that attaches two 3D physics bodies at a single point, allowing them to freely rotate. For example, a RigidBody3D can be attached to a StaticBody3D to create a pendulum or a seesaw.

Members #

var params/bias: float = 0.3#

The force with which the pinned objects stay in positional relation to each other. The higher, the stronger.

var params/damping: float = 1.0#

The force with which the pinned objects stay in velocity relation to each other. The higher, the stronger.

var params/impulse_clamp: float = 0.0#

If above 0, this value is the maximum value for an impulse that this Joint3D produces.

Methods #

const func get_param(param: int enumPinJoint3D.Param) -> float#

Returns the value of the specified parameter.

func set_param(value: float) -> void#

Sets the value of the specified parameter.

Annotations #

Constants #

const PARAM_BIAS = 0 enum Param#

The force with which the pinned objects stay in positional relation to each other. The higher, the stronger.

const PARAM_DAMPING = 1 enum Param#

The force with which the pinned objects stay in velocity relation to each other. The higher, the stronger.

const PARAM_IMPULSE_CLAMP = 2 enum Param#

If above 0, this value is the maximum value for an impulse that this Joint3D produces.

Constructors #

Enums #

Param#

enum Param { PARAM_BIAS = 0, PARAM_DAMPING = 1, PARAM_IMPULSE_CLAMP = 2, }

Operators #

Signals #

Theme Items #

Tutorials #