mobile-query-three-plugins-cannonjs-vendor-cannon.js-src-objects-Particle.js / js
@class CANNON.Particle @brief A body consisting of one point mass. Does not have orientation.
parameter: float mass
parameter: CANNON.Material material
@property CANNON.Vec3 position @memberof CANNON.Particle
@property CANNON.Vec3 initPosition @memberof CANNON.Particle @brief Initial position of the body
@property CANNON.Vec3 velocity @memberof CANNON.Particle
@property CANNON.Vec3 initVelocity @memberof CANNON.Particle
@property CANNON.Vec3 force @memberof CANNON.Particle @brief Linear force on the body
@property float mass @memberof CANNON.Particle
@property float invMass @memberof CANNON.Particle
@property CANNON.Material material @memberof CANNON.Particle
@property float linearDamping @memberof CANNON.Particle
@property int motionstate @memberof CANNON.Particle @brief One of the states CANNON.Body.DYNAMIC, CANNON.Body.STATIC and CANNON.Body.KINEMATIC
@property bool allowSleep @memberof CANNON.Particle @brief If true, the body will automatically fall to sleep.
@method isAwake @memberof CANNON.Particle
returns: bool
@method isSleepy @memberof CANNON.Particle
returns: bool
@method isSleeping @memberof CANNON.Particle
returns: bool
@property float sleepSpeedLimit @memberof CANNON.Particle @brief If the speed (the norm of the velocity) is smaller than this value, the body is considered sleepy.
@property float sleepTimeLimit @memberof CANNON.Particle @brief If the body has been sleepy for this sleepTimeLimit milliseconds, it is considered sleeping.
@method wakeUp @memberof CANNON.Particle @brief Wake the body up.
@method sleep @memberof CANNON.Particle @brief Force body sleep
@method sleepTick @memberof CANNON.Particle @brief Called every timestep to update internal sleep timer and change sleep state if needed.
(C) Æliens 04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.