Click or drag to resize

BuoyancyController Constructor

Initializes a new instance of the BuoyancyController class.

Namespace: Internal.tainicom.Aether.Physics2D.Controllers
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public 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