UprightJointclass

Constrains a physics body to stay upright relative to another body or the world. Uses a spring to keep the Z-axes of both bodies parallel.

objectJointUprightJoint
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public sealed class Sandbox.UprightJoint : Sandbox.Joint

Constructors1

Showing 1 constructors

public UprightJoint()PUBLICCONSTRUCTOR

Properties3

Showing 3 properties

public float Sandbox.UprightJoint.DampingRatio { get; set; }PUBLICGETSET

Spring damping ratio (non-dimensional). A value of 1 is critically damped; values below 1 are springy, values above 1 are over-damped.

Returns:float

public float Sandbox.UprightJoint.Hertz { get; set; }PUBLICGETSET

Spring stiffness in cycles per second (Hertz). Higher values make the joint stiffer and snap back faster.

Returns:float

public float Sandbox.UprightJoint.MaxTorque { get; set; }PUBLICGETSET

Maximum torque the joint can apply in newton-meters. Set to 0 for unlimited torque.

Returns:float

On this page