BallJointBuilderclass

Builds a ball joint with optional swing and twist limits.

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

Methods2

Showing 2 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

Properties4

Showing 4 properties

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.SwingLimit { get; set; }PUBLICGETSET

Maximum allowed swing angle in degrees.

Returns:float

On this page