C4 Engine
C4 Engine API Documentation

class FluidForce

Defined in:  C4Forces.h
The FluidForce class exerts fluid buoyancy and drag forces on rigid bodies inside a field.
Definition

class FluidForce : public Force

Constructor

FluidForce();

Description
The FluidForce class represents a fluid force that produces buoyancy and drag inside a field. When a rigid body intersects a field to which a FluidForce object is assigned, the fluid force determines exactly what volume of the rigid body intersects the field and uses that volume and the densities of the shapes composing the rigid body to calculate a buoyant force. A drag force is also calculated based on the submerged volume, the rigid body's drag multiplier, and the difference between the rigid body's velocity and the fluid's current velocity.
Base Classes
Force A fluid force is a specific type of force.
See Also

BodyController::GetFluidDragMultiplier

BodyController::SetFluidDragMultiplier