PinJoint3D
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.
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.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
PinJoint3DConstructor
public PinJoint3D();Methods2
GetParamfloat
public float GetParam(PinJoint3D.Param param);Returns the value of the specified parameter.
| Name | Type | Default |
|---|---|---|
param | PinJoint3D.Param | — |
floatSetParamvoid
public void SetParam(PinJoint3D.Param param, float value);Sets the value of the specified parameter.
| Name | Type | Default |
|---|---|---|
param | PinJoint3D.Param | — |
value | float | — |
PinJoint3D.Param
| Value | Description |
|---|---|
Bias = 0 | The force with which the pinned objects stay in positional relation to each other. The higher, the stronger. |
Damping = 1 | The force with which the pinned objects stay in velocity relation to each other. The higher, the stronger. |
ImpulseClamp = 2 | If above 0, this value is the maximum value for an impulse that this Joint3D produces. |