# RodConstraint

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/RodConstraint/
- Roblox documentation: https://create.roblox.com/docs/reference/engine/classes/RodConstraint

Keeps two attachments separated by its defined [`Length`](https://rapi.sleaze.dev/classes/RodConstraint.md).

## Properties

### Thickness

```luau
RodConstraint.Thickness: number = 0.100000001
```

- Tags: Read capabilities: Physics, Simulation access

The visualized thickness of the [`RodConstraint`](https://rapi.sleaze.dev/classes/RodConstraint.md).

### CurrentDistance

```luau
RodConstraint.CurrentDistance: number = 0
```

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

The current distance between the constraint's `Attachments`.

### LimitAngle0

```luau
RodConstraint.LimitAngle0: number = 90
```

- Tags: Read capabilities: Physics, Simulation access

The maximum angle between the rod and [`Attachment0`](https://rapi.sleaze.dev/classes/Constraint.md) when [`LimitsEnabled`](https://rapi.sleaze.dev/classes/RodConstraint.md) is true.

### LimitAngle1

```luau
RodConstraint.LimitAngle1: number = 90
```

- Tags: Read capabilities: Physics, Simulation access

The maximum angle between the rod and [`Attachment1`](https://rapi.sleaze.dev/classes/Constraint.md) when [`LimitsEnabled`](https://rapi.sleaze.dev/classes/RodConstraint.md) is true.

### Length

```luau
RodConstraint.Length: number = 5
```

- Tags: Read capabilities: Physics, Simulation access

The distance apart at which the constraint attempts to keep its `Attachments`.

### LimitsEnabled

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

- Tags: Read capabilities: Physics, Simulation access

Determines whether [`LimitAngle0`](https://rapi.sleaze.dev/classes/RodConstraint.md) and [`LimitAngle1`](https://rapi.sleaze.dev/classes/RodConstraint.md) control the angles between the rod and the respective attachments.

## 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`
