# TorsionSpringConstraint

Roblox Engine API class from Roblox Studio 0.744.0.7441077 (version-7aaa6838d36c4448).

- Inherits from, nearest first: [Constraint](https://rapi.sleaze.dev/classes/Constraint.md), [Instance](https://rapi.sleaze.dev/classes/Instance.md), [Object](https://rapi.sleaze.dev/classes/Object.md)
- Memory category: BaseParts
- HTML page: https://rapi.sleaze.dev/classes/TorsionSpringConstraint/
- Roblox documentation: https://create.roblox.com/docs/reference/engine/classes/TorsionSpringConstraint

A rotational spring that opposes the angular motion between two axes.

## Properties

### Coils

```luau
TorsionSpringConstraint.Coils: number = 8
```

- Tags: Read capabilities: Physics, Simulation access

The number of coils visualized for the constraint.

### Radius

```luau
TorsionSpringConstraint.Radius: number = 0.400000006
```

- Tags: Read capabilities: Physics, Simulation access

The visualization radius of the spring.

### CurrentAngle

```luau
TorsionSpringConstraint.CurrentAngle: number = 0
```

- Tags: Read only, Read capabilities: Physics, Save only, Simulation access

The current angle, in degrees, of the limiting cone.

### MaxAngle

```luau
TorsionSpringConstraint.MaxAngle: number = 45
```

- Tags: Read capabilities: Physics, Simulation access

The maximum angle of the constraint's limiting cone.

### Restitution

```luau
TorsionSpringConstraint.Restitution: number = 0
```

- Tags: Read capabilities: Physics, Simulation access

The restitution coefficient of the cone constraint.

### Damping

```luau
TorsionSpringConstraint.Damping: number = 0.00999999978
```

- Tags: Read capabilities: Physics, Simulation access

Damping constant for the [`TorsionSpringConstraint`](https://rapi.sleaze.dev/classes/TorsionSpringConstraint.md). Multiplied to the velocity of the constraint's `Attachments` to reduce the spring force applied.

### LimitsEnabled

```luau
TorsionSpringConstraint.LimitsEnabled: boolean = false
```

- Tags: Read capabilities: Physics, Simulation access

Limits the relative angular motion of the secondary axes of attachments through a cone constraint.

### MaxTorque

```luau
TorsionSpringConstraint.MaxTorque: number = INF
```

- Tags: Read capabilities: Physics, Simulation access

The maximum allowable torque provided by the torsion spring.

### Stiffness

```luau
TorsionSpringConstraint.Stiffness: number = 100
```

- Tags: Read capabilities: Physics, Simulation access

The torsional stiffness of the spring.

### LimitEnabled

```luau
TorsionSpringConstraint.LimitEnabled: boolean = false
```

- Tags: Deprecated, Hidden, Read capabilities: Physics, Simulation access
- Use instead: [`TorsionSpringConstraint.LimitsEnabled`](https://rapi.sleaze.dev/classes/TorsionSpringConstraint.md)

**Deprecated:** This property is deprecated. Use [`LimitsEnabled`](https://rapi.sleaze.dev/classes/TorsionSpringConstraint.md) instead.

## Inherited members

- From [Constraint](https://rapi.sleaze.dev/classes/Constraint.md): `Color`, `Visible`, `Attachment0`, `Attachment1`, `Active`, `Enabled`, `GetDebugAppliedForce`, `GetDebugAppliedTorque`
- From [Instance](https://rapi.sleaze.dev/classes/Instance.md): `Archivable`, `archivable`, `Attributes`, `AttributesReplicate`, `AttributesSerialize`, `HistoryId`, `Name`, `Parent`, `PredictionMode`, `PropertyStatusStudio`, `RobloxLocked`, `SerializedOverrides`, `SourceAssetId`, `Tags`, `UniqueId`, `numExpectedDirectChildren`, `DataCost`, `Capabilities`, `DefinesCapabilities`, `IsInSandbox`, `Sandboxed`, `AddTag`, `ClearAllChildren`, `Clone`, `Destroy`, `FindFirstAncestor`, `FindFirstAncestorOfClass`, `FindFirstAncestorWhichIsA`, `FindFirstChild`, `FindFirstChildOfClass`, `FindFirstChildWhichIsA`, `FindFirstDescendant`, `GetActor`, `GetAttribute`, `GetAttributeChangedSignal`, `GetAttributes`, `GetChildren`, `GetDebugId`, `GetDescendants`, `GetFullName`, `GetStyled`, `GetStyledPropertyChangedSignal`, `GetTags`, `HasTag`, `IsAncestorOf`, `IsDescendantOf`, `IsPropertyModified`, `QueryDescendants`, `RemoveTag`, `ResetPropertyToDefault`, `SetAttribute`, `WaitForChild`, `Remove`, `children`, `clone`, `destroy`, `findFirstChild`, `getChildren`, `isDescendantOf`, `remove`, `AncestryChanged`, `AttributeChanged`, `ChildAdded`, `ChildRemoved`, `DescendantAdded`, `DescendantRemoving`, `Destroying`, `StyledPropertiesChanged`, `childAdded`
- From [Object](https://rapi.sleaze.dev/classes/Object.md): `ClassName`, `className`, `GetPropertyChangedSignal`, `IsA`, `isA`, `Changed`
