Fixed physics BoundingBox

This commit is contained in:
Shoghi Cervantes 2014-07-06 12:59:41 +02:00
parent 6b361389ad
commit 25ecdcf6e2

View File

@ -779,10 +779,10 @@ abstract class Entity extends Position implements Metadatable{
$this->motionZ = 0; $this->motionZ = 0;
} }
//$this->boundingBox->addCoord($dx, $dy, $dz); $this->boundingBox->addCoord($dx, $dy, $dz);
//$this->x += $dx; $this->x += $dx;
//$this->y += $dy; $this->y += $dy;
//$this->z += $dz; $this->z += $dz;
$cx = $this->x - $ox; $cx = $this->x - $ox;
$cy = $this->y - $oy; $cy = $this->y - $oy;