Merge remote-tracking branch 'origin/develop-turtleGame' into develop-turtleGame

This commit is contained in:
2025-10-15 22:20:14 +02:00

View File

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