nape.phys.FluidProperties
Top
|
Constructor
|
Instance Properties
|
Instance Methods
Overview
nape
nape.callbacks
nape.constraint
nape.dynamics
nape.geom
nape.hacks
nape.phys
nape.shape
nape.space
nape.symbolic
nape.util
type
class
FluidProperties providing shared parameters for fluid interaction.
Constructor
function
new
(density:
Float
= 1, viscosity:
Float
= 1)
Construct a new FluidProperties objects.
Instance Properties
var
density
:
Float
= 1
Density of fluid.
var
gravity
:
Null
<
nape.geom.Vec2
>
Local gravity for buoyancy computations.
readonly var
shapes
:
nape.shape.ShapeList
Set of all active shapes using this object.
readonly var
userData
:
Dynamic
<
Dynamic
> = {}
Dynamic object for user to store additional data.
var
viscosity
:
Float
= 1
Viscosity of fluid.
Instance Methods
function
copy
():
FluidProperties
Produce a copy of this FluidProperties object.