csharp
public readonly record struct BuoyancySettingsHow a body floats.
Remarks
Unreal's UBuoyancyComponent, minus the pieces that belong elsewhere: the pontoon list is the caller's span, the FX flags are Vixen.Vfx's, and the boat that steers with these forces is [28 § Vixen.Gameplay.Movement](../../docs/plan/28-gameplay-framework.md)'s.
Fields and properties (6)
public float CoefficientA multiplier on the displaced weight.
public float DampingFirst-order damping on the submerged part's velocity, per second.
public float QuadraticDampingSecond-order damping, per metre of travel.
public float MaximumForceThe most upward force one pontoon may produce, in newtons. Zero for no limit.
public float FlowDragHow hard a current drags a submerged pontoon along with it, per second.
public static BuoyancySettings DefaultA crate: Archimedes exactly, damped enough to settle in a couple of seconds.
Used by (6)
- RaftFloatsTestsThirdPersonShooter.Frame.Tests
- BuoyancyVixen.Water
- BuoyancyBodyVixen.Water.Physics
- BuoyancySystemTestsVixen.Water.Physics.Tests
- BuoyancyTestsVixen.Water.Tests
- TypeRegistrationVixen.Water.Physics