FluidProperties providing shared parameters for fluid interaction.
Constructor
Variables
gravity:Null<Vec2>
Local gravity for buoyancy computations.
When this value is not null, it will be used in place of the Space gravity
when performing buoyancy computations.
read onlyshapes:ShapeList
Set of all active shapes using this object.
Activeness of a shape in the sense that the Shape's Body is inside of a Space.
This list is immutable.
read onlyuserData:Dynamic<Dynamic>
Dynamic object for user to store additional data.
This object cannot be set, only its dynamically created
properties may be set. In AS3 the type of this property is *
This object will be lazily constructed so that until accessed
for the first time, will be null internally.
Methods
copy():FluidProperties
Produce a copy of this FluidProperties object.
The copied object will be identical in all properties with the the
copied userData being assigned the same fields as 'this' Shape with the
same values copied over by reference for object types.
Returns:
The copied FluidProperties.