Table of Contents

Enum PhysicsServer2D.DampedSpringParam

Namespace
Godot
Assembly
GodotSharp.dll
public enum PhysicsServer2D.DampedSpringParam : long

Fields

Damping = 2

Sets the damping ratio of the spring joint. A value of 0 indicates an undamped spring, while 1 causes the system to reach equilibrium as fast as possible (critical damping). The default value of this parameter is 1.5.

RestLength = 0

Sets the resting length of the spring joint. The joint will always try to go to back this length when pulled apart. The default value of this parameter is the distance between the joint's anchor points.

Stiffness = 1

Sets the stiffness of the spring joint. The joint applies a force equal to the stiffness times the distance from its resting length. The default value of this parameter is 20.0.