# LinearVelocity

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

Applies force on an assembly to maintain a constant linear velocity.

## Properties

### ForceLimitMode

```luau
LinearVelocity.ForceLimitMode: Enum.ForceLimitMode = Enum.ForceLimitMode.Magnitude
```

- Tags: Read capabilities: Physics, Simulation access

Determines how the constraint force will be limited.

### MaxAxesForce

```luau
LinearVelocity.MaxAxesForce: Vector3 = Vector3.new(1000, 1000, 1000)
```

- Tags: Read capabilities: Physics, Simulation access

Maximum force along each axis that the constraint can apply to achieve the vector velocity. Only used if [`ForceLimitsEnabled`](https://rapi.sleaze.dev/classes/LinearVelocity.md) is `true`, [`ForceLimitMode`](https://rapi.sleaze.dev/classes/LinearVelocity.md) is `PerAxis`, and [`VelocityConstraintMode`](https://rapi.sleaze.dev/classes/LinearVelocity.md) is `Vector`.

### MaxForce

```luau
LinearVelocity.MaxForce: number = 1000
```

- Tags: Read capabilities: Physics, Simulation access

Maximum magnitude of the force vector the constraint can apply.

### MaxPlanarAxesForce

```luau
LinearVelocity.MaxPlanarAxesForce: Vector2 = Vector2.new(1000, 1000)
```

- Tags: Read capabilities: Physics, Simulation access

Maximum force along each axis that the constraint can apply to achieve the plane velocity. Only used if [`ForceLimitsEnabled`](https://rapi.sleaze.dev/classes/LinearVelocity.md) is `true`, [`ForceLimitMode`](https://rapi.sleaze.dev/classes/LinearVelocity.md) is `PerAxis`, and [`VelocityConstraintMode`](https://rapi.sleaze.dev/classes/LinearVelocity.md) is [`Plane`](https://rapi.sleaze.dev/classes/Plane.md).

### LineDirection

```luau
LinearVelocity.LineDirection: Vector3 = Vector3.new(1, 0, 0)
```

- Tags: Read capabilities: Physics, Simulation access

The normalized [`Vector3`](https://rapi.sleaze.dev/index/types/Vector3.md) direction for constraining the velocity along a line.

### LineVelocity

```luau
LinearVelocity.LineVelocity: number = -0
```

- Tags: Read capabilities: Physics, Simulation access

Float value of the velocity when [`VelocityConstraintMode`](https://rapi.sleaze.dev/classes/LinearVelocity.md) is set to `Line`.

### ForceLimitsEnabled

```luau
LinearVelocity.ForceLimitsEnabled: boolean = true
```

- Tags: Read capabilities: Physics, Simulation access

Determines if the constraint force will be limited or if the physics solver can apply an unlimited force to achieve the target velocity.

### ReactionForceEnabled

```luau
LinearVelocity.ReactionForceEnabled: boolean = true
```

- Tags: Read capabilities: Physics, Simulation access

Determines whether an equal and opposite reaction force is also applied to the assembly of [`Attachment1`](https://rapi.sleaze.dev/classes/Constraint.md) when [`RelativeTo`](https://rapi.sleaze.dev/classes/LinearVelocity.md) is [`Attachment1`](https://rapi.sleaze.dev/classes/Constraint.md).

### RelativeTo

```luau
LinearVelocity.RelativeTo: Enum.ActuatorRelativeTo = Enum.ActuatorRelativeTo.World
```

- Tags: Read capabilities: Physics, Simulation access

Sets the `ActuatorRelativeTo` property for the constraint.

### VelocityConstraintMode

```luau
LinearVelocity.VelocityConstraintMode: Enum.VelocityConstraintMode = Enum.VelocityConstraintMode.Vector
```

- Tags: Read capabilities: Physics, Simulation access

The mode of the constraint.

### PlaneVelocity

```luau
LinearVelocity.PlaneVelocity: Vector2 = Vector2.zero
```

- Tags: Read capabilities: Physics, Simulation access

[`Vector2`](https://rapi.sleaze.dev/index/types/Vector2.md) value of the velocity in each tangent direction of the plane.

### PrimaryTangentAxis

```luau
LinearVelocity.PrimaryTangentAxis: Vector3 = Vector3.new(1, 0, 0)
```

- Tags: Read capabilities: Physics, Simulation access

The primary axis in the plane, when [`VelocityConstraintMode`](https://rapi.sleaze.dev/classes/LinearVelocity.md) is set to [`Plane`](https://rapi.sleaze.dev/classes/Plane.md).

### SecondaryTangentAxis

```luau
LinearVelocity.SecondaryTangentAxis: Vector3 = Vector3.new(0, 1, 0)
```

- Tags: Read capabilities: Physics, Simulation access

The secondary axis in the plane, when [`VelocityConstraintMode`](https://rapi.sleaze.dev/classes/LinearVelocity.md) is set to [`Plane`](https://rapi.sleaze.dev/classes/Plane.md).

### VectorVelocity

```luau
LinearVelocity.VectorVelocity: Vector3 = Vector3.zero
```

- Tags: Read capabilities: Physics, Simulation access

[`Vector3`](https://rapi.sleaze.dev/index/types/Vector3.md) velocity value when [`VelocityConstraintMode`](https://rapi.sleaze.dev/classes/LinearVelocity.md) is set to `Vector`.

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