# BodyGyro

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

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

**Deprecated:** This object is deprecated and should not be used for new work. Use [`AlignOrientation`](https://rapi.sleaze.dev/classes/AlignOrientation.md) instead, and see the [legacy conversion notes](https://create.roblox.com/docs/physics/mover-constraints#legacy-mover-conversion).

Applies a torque to maintain a constant orientation.

## Properties

### CFrame

```luau
BodyGyro.CFrame: CFrame = CFrame.identity
```

- Tags: Read capabilities: Physics

Determines the target orientation (translational component ignored).

### D

```luau
BodyGyro.D: number = 500
```

- Tags: Read capabilities: Physics

Determines the amount of dampening to use in reaching the goal [`CFrame`](https://rapi.sleaze.dev/index/types/CFrame.md).

### MaxTorque

```luau
BodyGyro.MaxTorque: Vector3 = Vector3.new(400000, 0, 400000)
```

- Tags: Read capabilities: Physics

Determines the limit on how much torque that may be applied to each axis.

### P

```luau
BodyGyro.P: number = 3000
```

- Tags: Read capabilities: Physics

Determines how aggressive of a torque is applied in reaching the goal orientation.

### cframe

```luau
BodyGyro.cframe: CFrame = CFrame.identity
```

- Tags: Deprecated, Not replicated, Read capabilities: Physics, Load only
- Use instead: [`BodyGyro.CFrame`](https://rapi.sleaze.dev/classes/BodyGyro.md)

**Deprecated:** This property is a deprecated variant of [`BodyGyro.CFrame`](https://rapi.sleaze.dev/classes/BodyGyro.md) which should be used instead.

### maxTorque

```luau
BodyGyro.maxTorque: Vector3 = Vector3.new(400000, 0, 400000)
```

- Tags: Deprecated, Not replicated, Read capabilities: Physics, Load only
- Use instead: [`BodyGyro.MaxTorque`](https://rapi.sleaze.dev/classes/BodyGyro.md)

**Deprecated:** This property is a deprecated variant of [`BodyGyro.MaxTorque`](https://rapi.sleaze.dev/classes/BodyGyro.md) which should be used instead.

## Inherited members

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