API ReferenceSandbox.Physics

UprightJointclass

A parallel joint that constrains the Z-axes of two bodies to be parallel using a spring. Useful for keeping a physics body upright relative to another body or a static anchor.

objectPhysicsJointUprightJoint
Namespace
Sandbox.Physics
Assembly
Sandbox.Engine
Declaration
public class Sandbox.Physics.UprightJoint : Sandbox.Physics.PhysicsJoint

Properties3

Showing 3 properties

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

The spring damping ratio (non-dimensional). A value of 1 is critically damped; values below 1 are under-damped (springy).

Returns:float

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

The spring stiffness in cycles per second (Hertz). Higher values make the constraint stiffer.

Returns:float

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

The maximum torque the joint can apply.

Returns:float

On this page