BallJointBuilderclass

Builds a ball joint with optional swing and twist limits.

object→PhysicsJointBuilder→BallJointBuilder
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public sealed class Sandbox.BallJointBuilder : Sandbox.PhysicsJointBuilder

Methods8

Showing 8 methods

public Sandbox.BallJointBuilder WithSwingLimit(float v)PUBLIC

Sets and enables the swing angle limit.

ParameterTypeDescription
vfloatThe maximum swing angle in degrees.
Returns:BallJointBuilder—

public Sandbox.BallJointBuilder WithTwistLimit(float min, float max)PUBLIC

Sets and enables the twist angle limits.

ParameterTypeDescription
minfloatThe minimum twist angle in degrees.
maxfloatThe maximum twist angle in degrees.
Returns:BallJointBuilder—

Properties12

Showing 12 properties

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

Spring motor damping ratio.

Returns:float—

public bool Sandbox.BallJointBuilder.EnableMotor { get; set; }PUBLICGETSET

Whether the joint's angular motor is enabled.

Returns:bool—

public bool Sandbox.BallJointBuilder.EnableSwingLimit { get; set; }PUBLICGETSET

Whether the joint enforces a swing angle limit.

Returns:bool—

public bool Sandbox.BallJointBuilder.EnableTwistLimit { get; set; }PUBLICGETSET

Whether the joint enforces a twist angle limit.

Returns:bool—

public float Sandbox.BallJointBuilder.Frequency { get; set; }PUBLICGETSET

Spring motor frequency in hertz.

Returns:float—

public float Sandbox.BallJointBuilder.Friction { get; set; }PUBLICGETSET

Component-style friction, used when the motor is disabled.

Returns:float—

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

Maximum torque the velocity motor may apply.

Returns:float—

public float Sandbox.BallJointBuilder.SwingLimit { get; set; }PUBLICGETSET

Maximum allowed swing angle in degrees.

Returns:float—

public Vector3 Sandbox.BallJointBuilder.TargetVelocity { get; set; }PUBLICGETSET

World angular velocity for the motor, in radians per second.

Returns:Vector3—

On this page