# Sandbox.BallJointBuilder

Builds a ball joint with optional swing and twist limits.

- Kind: class
- Namespace: `Sandbox`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.PhysicsJointBuilder](/api/Sandbox.PhysicsJointBuilder)
- Modifiers: sealed

## Properties

- [`EnableSwingLimit`](/api/Sandbox.BallJointBuilder/EnableSwingLimit): Whether the joint enforces a swing angle limit.
- [`EnableTwistLimit`](/api/Sandbox.BallJointBuilder/EnableTwistLimit): Whether the joint enforces a twist angle limit.
- [`SwingLimit`](/api/Sandbox.BallJointBuilder/SwingLimit): Maximum allowed swing angle in degrees.
- [`TwistLimit`](/api/Sandbox.BallJointBuilder/TwistLimit): Minimum and maximum allowed twist angles in degrees.

## Methods

- [`WithSwingLimit`](/api/Sandbox.BallJointBuilder/WithSwingLimit): Sets and enables the swing angle limit.
- [`WithTwistLimit`](/api/Sandbox.BallJointBuilder/WithTwistLimit): Sets and enables the twist angle limits.
