s&box docs
API ReferenceSandbox.Physics

public class Sandbox.Physics.ControlJoint : Sandbox.Physics.PhysicsJoint

The control joint is designed to control the movement of a body while remaining responsive to collisions. A spring can be used to control position and rotation, while a velocity motor can control velocity and simulate friction in top-down games. Both methods can be combined โ€” for example, a spring with friction. Position and velocity control each have configurable force and torque limits.

Properties

Showing 6 properties

public Sandbox.Physics.PhysicsSpring Sandbox.Physics.ControlJoint.AngularSpring { get; set; }

The spring angular hertz stiffness and damping ratio.

public Vector3 Sandbox.Physics.ControlJoint.AngularVelocity { get; set; }

The desired relative angular velocity in radians per second.

public Sandbox.Physics.PhysicsSpring Sandbox.Physics.ControlJoint.LinearSpring { get; set; }

The spring linear hertz stiffness and damping ratio.

public Vector3 Sandbox.Physics.ControlJoint.LinearVelocity { get; set; }

The desired relative linear velocity.

public float Sandbox.Physics.ControlJoint.MaxVelocityForce { get; set; }

The joint maximum force.

public float Sandbox.Physics.ControlJoint.MaxVelocityTorque { get; set; }

The joint maximum torque.

Metadata

FieldValue
NamespaceSandbox.Physics
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.Physics.ControlJoint

On this page