mirror of
https://github.com/wassname/phaser.git
synced 2026-08-08 11:23:41 +08:00
Started revamp of the Tilemap system. Also removed old 'Advanced Physics' and dropped in p2.js which is what I hope we'll eventually use.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user