BuoyancyInput()
Create a default PhysicsBody.BuoyancyInput. The _mask defaults to PhysicsMask.All so every attached shape contributes unless explicitly filtered out. The surface defaults to a flat horizontal water surface at the world origin ( _surfacePosition = _zero, _surfaceNormal = _up ).
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Constructor
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public BuoyancyInput()