Fluid interaction subtype for Arbiter.
Constructor
Variables
Methods
buoyancyImpulse(?body:Body):Vec3
Determine impulse on a given body due to buoyancy.
If the body is null, then the buoyancy impulse will be returned without consideration to any specific
body involved, and no angular impulses can be derived.
Parameters:
body | The body to query impulse for. (default null) |
---|
Returns:
The buoyancy impulse for given body.
Throws:
# | If body is non-null, and unrelated to this Arbiter. |
---|
dragImpulse(?body:Body):Vec3
Determine impulse on a given body due to fluid drag.
If the body is null, then the drag impulse will be returned without consideration to any specific
body involved.
Parameters:
body | The body to query impulse for. (default null) |
---|
Returns:
The drag impulse for given body.
Throws:
# | If body is non-null, and unrelated to this Arbiter. |
---|
totalImpulse(?body:Body, freshOnly:Bool = false):Vec3
Determine total impulse on a given body due to fluid interaction.
If the body is null, then the total impulse will be computed without consideration to any specific
body involved, and no angular impulses can be derived for the linear portion of the impulses.
Parameters:
body | The body to query impulse for. (default null) |
---|---|
freshOnly | This parameter is unused for FluidArbiters. (default false) |
Returns:
The total impulse for given body.
Throws:
# | If body is non-null, and unrelated to this Arbiter. |
---|