Fixed friction bug

This commit is contained in:
C109 2015-12-01 11:35:20 -05:00
parent 04ab50b7d8
commit 46f1000bcf

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();