mirror of
https://github.com/wassname/phaser.git
synced 2026-07-05 17:30:19 +08:00
23 lines
436 B
JavaScript
23 lines
436 B
JavaScript
var Shape = require('./Shape');
|
|
|
|
module.exports = Particle;
|
|
|
|
/**
|
|
* Particle shape class.
|
|
* @class Particle
|
|
* @constructor
|
|
* @extends {Shape}
|
|
*/
|
|
function Particle(){
|
|
Shape.call(this,Shape.PARTICLE);
|
|
};
|
|
Particle.prototype = new Shape();
|
|
Particle.prototype.computeMomentOfInertia = function(mass){
|
|
return 0; // Can't rotate a particle
|
|
};
|
|
|
|
Particle.prototype.updateBoundingRadius = function(){
|
|
this.boundingRadius = 0;
|
|
};
|
|
|