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: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public BuoyancyController(
	AABB container,
	float density,
	float linearDragCoefficient,
	float rotationalDragCoefficient,
	Vector2 gravity
)

Parameters

container
Type: Internal.tainicom.Aether.Physics2D.CollisionAABB
Only bodies inside this AABB will be influenced by the controller
density
Type: SystemSingle
Density of the fluid
linearDragCoefficient
Type: SystemSingle
Linear drag coefficient of the fluid
rotationalDragCoefficient
Type: SystemSingle
Rotational drag coefficient of the fluid
gravity
Type: Internal.tainicom.Aether.Physics2D.CommonVector2
The direction gravity acts. Buoyancy force will act in opposite direction of gravity.
See Also