SwimController
The ControllerBase that moves a ControllerManager character while it is swimming.
| Memory category | Instances |
|---|
Member index 5
Removed member index 2
| History | Member | |
|---|---|---|
| 543 | OrientationMaxTorque: float | |
| 543 | OrientationSpeed: float |
Description
SwimController is the ControllerBase that a ControllerManager activates to move a physics-based character while it is swimming. When it is the manager's ControllerManager.ActiveController, it drives the ControllerManager.RootPart toward the manager's target velocity (scaled by ControllerBase.MoveSpeedFactor), pitches the character to face the ControllerManager.FacingDirection, and rolls it to keep it oriented in the water. Pitch rotation is tuned with SwimController.PitchMaxTorque and SwimController.PitchSpeedFactor, and roll with SwimController.RollMaxTorque and SwimController.RollSpeedFactor, with the speed factors scaled by ControllerManager.BaseTurnSpeed. A SwimController only functions when parented to a ControllerManager.
History 37
- 731 Change Default of RollSpeedFactor from to 1
- 731 Change Default of RollMaxTorque from to 10000
- 731 Change Default of PitchSpeedFactor from to 1
- 731 Change Default of PitchMaxTorque from to 10000
- 731 Change Default of AccelerationTime from to 0
- 726 Change Default of RollSpeedFactor from 1 to
- 726 Change Default of RollMaxTorque from 10000 to
- 726 Change Default of PitchSpeedFactor from 1 to
- 726 Change Default of PitchMaxTorque from 10000 to
- 726 Change Default of AccelerationTime from 0 to
- 597 Change Tags of SwimController from [NotBrowsable] to []
- 574 Change ThreadSafety of RollSpeedFactor from LocalSafe to ReadSafe
- 574 Change ThreadSafety of RollMaxTorque from LocalSafe to ReadSafe
- 574 Change ThreadSafety of PitchSpeedFactor from LocalSafe to ReadSafe
- 574 Change ThreadSafety of PitchMaxTorque from LocalSafe to ReadSafe
- 574 Change ThreadSafety of AccelerationTime from LocalSafe to ReadSafe
- 572 Change ThreadSafety of RollSpeedFactor from ReadSafe to LocalSafe
- 572 Change ThreadSafety of RollMaxTorque from ReadSafe to LocalSafe
- 572 Change ThreadSafety of PitchSpeedFactor from ReadSafe to LocalSafe
- 572 Change ThreadSafety of PitchMaxTorque from ReadSafe to LocalSafe
- 572 Change ThreadSafety of AccelerationTime from ReadSafe to LocalSafe
- 553 Change Default of RollSpeedFactor from to 1
- 553 Change Default of RollMaxTorque from to 10000
- 553 Change Default of PitchSpeedFactor from to 1
- 553 Change Default of PitchMaxTorque from to 10000
- 553 Change Default of AccelerationTime from to 0
- 543 Add RollSpeedFactor
- 543 Add RollMaxTorque
- 543 Add PitchSpeedFactor
- 543 Add PitchMaxTorque
- 543 Remove OrientationSpeed
- 543 Remove OrientationMaxTorque
- 542 Change Tags of SwimController from [] to [NotBrowsable]
- 539 Add OrientationSpeed
- 539 Add OrientationMaxTorque
- 539 Add AccelerationTime
- 539 Add SwimController
Members 5
AccelerationTime
| Type | Default | |
|---|---|---|
| float | 0 | |
| Thread safety | ReadSafe |
|---|---|
| Category | Movement |
| Loaded/Saved | true |
History 6
- 731 Change Default of AccelerationTime from to 0
- 726 Change Default of AccelerationTime from 0 to
- 574 Change ThreadSafety of AccelerationTime from LocalSafe to ReadSafe
- 572 Change ThreadSafety of AccelerationTime from ReadSafe to LocalSafe
- 553 Change Default of AccelerationTime from to 0
- 539 Add AccelerationTime
PitchMaxTorque
| Type | Default | |
|---|---|---|
| float | 10000 | |
The maximum torque used to rotate on the local X axis to the desired pitch orientation. Has no effect if ControllerBase.RigidityEnabled is true.
| Thread safety | ReadSafe |
|---|---|
| Category | Balance |
| Loaded/Saved | true |
History 6
- 731 Change Default of PitchMaxTorque from to 10000
- 726 Change Default of PitchMaxTorque from 10000 to
- 574 Change ThreadSafety of PitchMaxTorque from LocalSafe to ReadSafe
- 572 Change ThreadSafety of PitchMaxTorque from ReadSafe to LocalSafe
- 553 Change Default of PitchMaxTorque from to 10000
- 543 Add PitchMaxTorque
PitchSpeedFactor
| Type | Default | |
|---|---|---|
| float | 1 | |
Multiplied by ControllerManager.BaseTurnSpeed to determine the maximum angular velocity rotating on the local X axis. Has no effect if ControllerBase.RigidityEnabled is true.
| Thread safety | ReadSafe |
|---|---|
| Category | Balance |
| Loaded/Saved | true |
History 6
- 731 Change Default of PitchSpeedFactor from to 1
- 726 Change Default of PitchSpeedFactor from 1 to
- 574 Change ThreadSafety of PitchSpeedFactor from LocalSafe to ReadSafe
- 572 Change ThreadSafety of PitchSpeedFactor from ReadSafe to LocalSafe
- 553 Change Default of PitchSpeedFactor from to 1
- 543 Add PitchSpeedFactor
RollMaxTorque
| Type | Default | |
|---|---|---|
| float | 10000 | |
The maximum torque applied to rotate on the local Z axis to the desired roll orientation. Has no effect if ControllerBase.RigidityEnabled is true.
| Thread safety | ReadSafe |
|---|---|
| Category | Balance |
| Loaded/Saved | true |
History 6
- 731 Change Default of RollMaxTorque from to 10000
- 726 Change Default of RollMaxTorque from 10000 to
- 574 Change ThreadSafety of RollMaxTorque from LocalSafe to ReadSafe
- 572 Change ThreadSafety of RollMaxTorque from ReadSafe to LocalSafe
- 553 Change Default of RollMaxTorque from to 10000
- 543 Add RollMaxTorque
RollSpeedFactor
| Type | Default | |
|---|---|---|
| float | 1 | |
Multiplied by ControllerManager.BaseTurnSpeed to determine the maximum angular velocity rotating on the local Z axis. Has no effect if ControllerBase.RigidityEnabled is true.
| Thread safety | ReadSafe |
|---|---|
| Category | Balance |
| Loaded/Saved | true |
History 6
- 731 Change Default of RollSpeedFactor from to 1
- 726 Change Default of RollSpeedFactor from 1 to
- 574 Change ThreadSafety of RollSpeedFactor from LocalSafe to ReadSafe
- 572 Change ThreadSafety of RollSpeedFactor from ReadSafe to LocalSafe
- 553 Change Default of RollSpeedFactor from to 1
- 543 Add RollSpeedFactor
Removed members 2
OrientationMaxTorque
| Type | Default | |
|---|---|---|
| float | ||
| Thread safety | ReadSafe |
|---|---|
| Category | Balance |
| Loaded/Saved | true |
History 2
- 543 Remove OrientationMaxTorque
- 539 Add OrientationMaxTorque
OrientationSpeed
| Type | Default | |
|---|---|---|
| float | ||
| Thread safety | ReadSafe |
|---|---|
| Category | Balance |
| Loaded/Saved | true |
History 2
- 543 Remove OrientationSpeed
- 539 Add OrientationSpeed