BuoyancyController Constructor |
Namespace: Internal.tainicom.Aether.Physics2D.ControllersAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntaxpublic BuoyancyController(
AABB container,
float density,
float linearDragCoefficient,
float rotationalDragCoefficient,
Vector2 gravity
)
Parameters
- container AABB
- Only bodies inside this AABB will be influenced by the controller
- density Single
- Density of the fluid
- linearDragCoefficient Single
- Linear drag coefficient of the fluid
- rotationalDragCoefficient Single
- Rotational drag coefficient of the fluid
- gravity Vector2
- The direction gravity acts. Buoyancy force will act in opposite direction of gravity.
See Also