mirror of
https://github.com/jneug/zeichenmaschine.git
synced 2026-10-12 09:56:33 +02:00
Boids Beispiel angepasst und Bug bei Null-Entfernung behoben
This commit is contained in:
@@ -28,7 +28,7 @@ public abstract class Creature extends Constants {
|
||||
|
||||
public abstract void update( List<Creature> creatures );
|
||||
|
||||
protected void limitPosition() {
|
||||
public void limitPosition() {
|
||||
if( position.x < 0 ) {
|
||||
if( Boids.BORDER_WRAP ) {
|
||||
position.x = width;
|
||||
|
||||
Reference in New Issue
Block a user