nape.phys.Material
Top
|
Static Methods
|
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
Material property providing physical attributes to a Shape.
Static Methods
static function
glass
():
Material
Predefined constructor for a glass style Material.
static function
ice
():
Material
Predefined constructor for a ice style Material.
static function
rubber
():
Material
Predefined constructor for a rubber style Material.
static function
sand
():
Material
Predefined constructor for a sand style Material.
static function
steel
():
Material
Predefined constructor for a steel style Material.
static function
wood
():
Material
Predefined constructor for a wood style Material.
Constructor
function
new
(elasticity:
Float
= 0.0, dynamicFriction:
Float
= 1.0, staticFriction:
Float
= 2.0, density:
Float
= 1.0, rollingFriction:
Float
= 0.001)
Construct a new Material object.
Instance Properties
var
density
:
Float
= 1
Density of Shape's using this Material.
var
dynamicFriction
:
Float
= 1
Coeffecient of dynamic friction for material.
var
elasticity
:
Float
= 0.0
Elasticity of material.
var
rollingFriction
:
Float
= 0.01
Coeffecient of rolling friction for circle interactions.
readonly var
shapes
:
nape.shape.ShapeList
Set of all active shapes using this object.
var
staticFriction
:
Float
= 2
Coeffecient of static friction for material.
readonly var
userData
:
Dynamic
<
Dynamic
> = {}
Dynamic object for user to store additional data.
Instance Methods
function
copy
():
Material
Produce a copy of this Material object.