API ReferenceSandbox.Physics

HingeJointclass

A hinge-like constraint.

objectPhysicsJointHingeJoint
Namespace
Sandbox.Physics
Assembly
Sandbox.Engine
Declaration
public class Sandbox.Physics.HingeJoint : Sandbox.Physics.PhysicsJoint

Methods2

Showing 2 methods

public void SetAngularMotor(float targetVelocity, float maxTorque)PUBLIC

Set the angular motor (target velocity in radians/sec, max torque).

ParameterTypeDescription
targetVelocityfloat
maxTorquefloat
Returns:void

public void SetAngularSpring(Vector3 parameters)PUBLIC

Set the angular spring parameters (target angle in radians, frequency, damping ratio).

ParameterTypeDescription
parametersVector3
Returns:void

Properties6

Showing 6 properties

public float Sandbox.Physics.HingeJoint.Angle { get; set; }PUBLICGETSET

Returns:float

public Vector3 Sandbox.Physics.HingeJoint.Axis { get; set; }PUBLICGETSET

Returns:Vector3

public float Sandbox.Physics.HingeJoint.Friction { get; set; }PUBLICGETSET

Hinge friction.

Returns:float

public float Sandbox.Physics.HingeJoint.MaxAngle { get; set; }PUBLICGETSET

Maximum angle it should be allowed to go

Returns:float

public float Sandbox.Physics.HingeJoint.MinAngle { get; set; }PUBLICGETSET

Minimum angle it should be allowed to go

Returns:float

public float Sandbox.Physics.HingeJoint.Speed { get; set; }PUBLICGETSET

Returns:float

On this page