Constructors
constructor
- new RigidBody(_aabb, mass, friction, restitution, gravMult, onCollide, autoStep): RigidBody
-
Parameters
-
_aabb: any
-
mass: any
-
friction: any
-
restitution: any
-
gravMult: any
-
onCollide: any
-
autoStep: any
Properties
autoStep
autoStep: boolean
fluidDrag
fluidDrag: number
gravityMultiplier
gravityMultiplier: any
resting
resting: number[]
restitution
restitution: any
Methods
applyForce
- applyForce(f): void
-
Returns void
applyImpulse
- applyImpulse(i): void
-
Returns void
atRestX
- atRestX(): number
-
Returns number
atRestY
- atRestY(): number
-
Returns number
atRestZ
- atRestZ(): number
-
Returns number
getPosition
- getPosition(): any
-
Returns any
setPosition
- setPosition(p): void
-
Returns void