Small World Engine API Reference - v0.76.20
    Preparing search index...

    Class FluidVolume

    Represents a volume of fluid in the physics simulation. Objects entering this volume will experience buoyancy (upward force) and drag (velocity damping).

    Index
    bounds: BoundingBox

    The AABB defining the boundaries of the fluid.

    currentVelocity: Vector3D

    The velocity of the fluid flow, which pushes objects inside it.

    density: number

    The density of the fluid. Higher density = more buoyancy. (1.0 = normal water)

    drag: number

    How much the fluid slows down objects moving through it (linear and angular damping). Lower value = more drag.