mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
more tweaks
This commit is contained in:
parent
6c08b74394
commit
426728342f
3 changed files with 23 additions and 14 deletions
|
|
@ -106,6 +106,7 @@ class MobController
|
|||
}
|
||||
|
||||
public function rotateTick(){ //TODO handle more rotation
|
||||
$this->entity->lastHeadYaw = $this->entity->headYaw;
|
||||
$w180 = Utils::wrapAngleTo180($this->finalHeadYaw - $this->entity->headYaw);
|
||||
$w180min = min(abs($w180), 20)*Utils::getSign($w180);
|
||||
$this->entity->headYaw = Utils::wrapAngleTo360($this->entity->headYaw + $w180min);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue