nape.dynamics.FluidArbiter

type
class
extends
Arbiter
Fluid interaction subtype for Arbiter.

Instance Properties hide inherited show inherited

readonly var body1 : nape.phys.Body

inherited from nape.dynamics.Arbiter
+ The first body in Arbiter interaction.

readonly var body2 : nape.phys.Body

inherited from nape.dynamics.Arbiter
+ The second body in Arbiter interaction.

readonly var collisionArbiter : Null<CollisionArbiter>

inherited from nape.dynamics.Arbiter
+ Fast equivalent to casting this object to a CollisionArbiter.

readonly var fluidArbiter : Null<FluidArbiter>

inherited from nape.dynamics.Arbiter
+ Fast equivalent to casting this object to a FluidArbiter.

readonly var isSleeping : Bool

inherited from nape.dynamics.Arbiter
+ Flag representing arbiter sleep state.

var overlap : Float

+ Overlap area of Shapes in fluid interaction.

var position : nape.geom.Vec2

+ Centre of buoyancy for fluid interaction.

readonly var shape1 : nape.shape.Shape

inherited from nape.dynamics.Arbiter
+ The first shape in Arbiter interaction.

readonly var shape2 : nape.shape.Shape

inherited from nape.dynamics.Arbiter
+ The second shape in Arbiter interaction.

readonly var state : nape.callbacks.PreFlag

inherited from nape.dynamics.Arbiter
+ The interaction state of this Arbiter.

readonly var type : ArbiterType

inherited from nape.dynamics.Arbiter
The type of this Arbiter.

Instance Methods hide inherited show inherited

function buoyancyImpulse(body:nape.phys.Body = null):nape.geom.Vec3

+ Determine impulse on a given body due to buoyancy.

function dragImpulse(body:nape.phys.Body = null):nape.geom.Vec3

+ Determine impulse on a given body due to fluid drag.

isCollisionArbiter():Bool

inherited from nape.dynamics.Arbiter
+ Equivalent to: arb.type == ArbiterType.COLLISION

isFluidArbiter():Bool

inherited from nape.dynamics.Arbiter
+ Equivalent to: arb.type == ArbiterType.FLUID

isSensorArbiter():Bool

inherited from nape.dynamics.Arbiter
+ Equivalent to: arb.type == ArbiterType.SENSOR

function totalImpulse(body:nape.phys.Body = null, freshOnly:Bool = false):nape.geom.Vec3

+ Determine total impulse on a given body due to fluid interaction.