Vixen
caa30e12
csharp
public readonly record struct BuoyancyForce

What one pontoon does to the body this step.

Read the guide page for this →

Fields and properties (5)

  • public Vector3 Force

    The force, in newtons, in world space.

  • public Vector3 Position

    Where it applies, in world space — which is what makes a body pitch.

  • public float Submerged

    How much of the sphere is under the surface, 0…1.

  • public float SurfaceHeight

    Where the surface was over the pontoon, in world units.

  • public static BuoyancyForce None

    A pontoon in the air.

Methods (1)

  • public BuoyancyForce(Vector3 Force, Vector3 Position, float Submerged, float SurfaceHeight)

    What one pontoon does to the body this step.

Used by (5)

  • BuoyancyVixen.Water
  • BuoyancyDebugDrawVixen.Water.Physics
  • BuoyancySystemVixen.Water.Physics
  • BuoyancySystemTestsVixen.Water.Physics.Tests
  • BuoyancyTestsVixen.Water.Tests