phaser/src/physics/impact/components/Acceleration.js

28 lines
375 B
JavaScript
Raw Normal View History

2017-08-15 22:36:00 +00:00
var Acceleration = {
setAccelerationX: function (x)
{
this.accel.x = x;
return this;
},
setAccelerationY: function (y)
{
this.accel.y = y;
return this;
},
setAcceleration: function (x, y)
{
this.accel.x = x;
this.accel.y = y;
return this;
}
};
module.exports = Acceleration;