Added base physics

This commit is contained in:
Shoghi Cervantes
2014-05-25 12:31:00 +02:00
parent ec055fd8d1
commit 4f2856dc09
9 changed files with 360 additions and 25 deletions

View File

@ -42,6 +42,10 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{
/** @var PlayerInventory */
protected $inventory;
public $width = 0.6;
public $length = 0.6;
public $height = 1.8;
public function getInventory(){
return $this->inventory;
}
@ -68,9 +72,6 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{
}
}
$this->height = 1.8; //Or 1.62?
$this->width = 0.6;
parent::initEntity();
}