API ReferenceSandbox.Physics

BallSocketJointclass

A ballsocket constraint.

objectPhysicsJointBallSocketJoint
Namespace
Sandbox.Physics
Assembly
Sandbox.Engine
Declaration
public class Sandbox.Physics.BallSocketJoint : Sandbox.Physics.PhysicsJoint

Methods2

Showing 2 methods

public void SetMotorVelocity(Vector3 velocity, float maxTorque)PUBLIC

Set the motor velocity and max torque.

ParameterTypeDescription
velocityVector3
maxTorquefloat
Returns:void

public void SetTargetRotation(Rotation rotation, float hertz, float damping)PUBLIC

Set the target rotation motor (rotation, frequency, damping ratio).

ParameterTypeDescription
rotationRotation
hertzfloat
dampingfloat
Returns:void

Properties5

Showing 5 properties

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

Constraint friction.

Returns:float

public Vector2 Sandbox.Physics.BallSocketJoint.SwingLimit { get; set; }PUBLICGETSET

Maximum angle it should be allowed to swing to

Returns:Vector2

public bool Sandbox.Physics.BallSocketJoint.SwingLimitEnabled { get; set; }PUBLICGETSET

Returns:bool

public bool Sandbox.Physics.BallSocketJoint.TwistLimitEnabled { get; set; }PUBLICGETSET

Returns:bool

On this page