| Property |
Description |
| angularDamping |
Angular damping coefficient.
Slows the body's angular velocity while submerged.
|
| density |
The fluid density, used to compute the Archimedean buoyancy force per submerged unit area.
Clamped to a lower bound of Mathf.Epsilon.
|
| flowDirection |
The direction of the fluid flow as a 2D rotation.
Combined with PhysicsBody.BuoyancyInput.flowSpeed to produce the flow velocity vector applied as force per unit submerged area at the submerged centroid.
|
| flowSpeed |
The magnitude of the fluid flow along PhysicsBody.BuoyancyInput.flowDirection.
The per-shape force contribution is flowDirection " flowSpeed " submergedArea.
|
| linearDamping |
Linear damping coefficient.
Slows the body's linear velocity at the submerged centroid relative to the fluid.
|
| mask |
Category mask used to filter which attached shapes contribute.
A shape participates iff (shape.contactFilter.categories.bitMask & mask.bitMask) != 0.
Defaults to PhysicsMask.All when the input is created via the parameterless constructor.
|
| surfaceNormal |
The outward-pointing surface normal of the fluid, in world space.
Points away from the submerged side; shape points with a negative separation from the plane are submerged.
Defaults to Vector2.up (a flat horizontal water surface).
Must be non-zero; the engine normalises it internally so it does not need to be unit length.
|
| surfacePosition |
A point in world space lying on the fluid surface.
Together with PhysicsBody.BuoyancyInput.surfaceNormal this defines the infinite plane of the fluid.
|
| useTriggers |
When true, trigger shapes contribute to buoyancy alongside solid shapes.
When false, trigger shapes are skipped.
|