Merge pull request #140 from 109C/master

Fixed friction bug
This commit is contained in:
Romain Beaumont 2015-12-01 17:51:05 +01:00
commit 843fdfb6fe

View file

@ -24,7 +24,7 @@ module.exports.entity=function(entity){
if (xBlock || yBlock || zBlock) {
entity.velocity.x = getFriction(entity.velocity.x, entity.friction.x, delta);
entity.velocity.z = getFriction(entity.velocity.x, entity.friction.x, delta);
entity.velocity.z = getFriction(entity.velocity.z, entity.friction.z, delta);
}
var oldPos = entity.position.clone();