Merge remote-tracking branch 'origin/develop-turtleGame' into develop-turtleGame
This commit is contained in:
@@ -49,6 +49,7 @@ public class Turtle extends EntityCreature {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void adaptView() {
|
public void adaptView() {
|
||||||
|
if(this.getInstance() == null) return;
|
||||||
this.teleport(this.getPosition().withView(this.player.getPosition().withPitch(this.getPosition().pitch())));
|
this.teleport(this.getPosition().withView(this.player.getPosition().withPitch(this.getPosition().pitch())));
|
||||||
Vec lookingVector = this.player.getPosition().direction().withY(0).mul(100);
|
Vec lookingVector = this.player.getPosition().direction().withY(0).mul(100);
|
||||||
this.lookAt(this.getPosition().add(lookingVector.asPosition()));
|
this.lookAt(this.getPosition().add(lookingVector.asPosition()));
|
||||||
|
Reference in New Issue
Block a user