public boolean collision(GameObject o) {
public boolean isObstacle() {
return this instanceof Obstacle;
}
}
이 부분을 추가해줘야한다.
'Game AI & Unity > Java Steering game' 카테고리의 다른 글
[Game AI][Steering Behavior] Task_Wall Avoidance (0) | 2024.03.21 |
---|---|
[Game AI][Steering Behavior] Task_Wall Avoidance (controllers.Controller) (0) | 2024.03.21 |
[Game AI][Steering Behavior] Task_Wall Avoidance (engine.Vector) (0) | 2024.03.21 |
[Game AI][Steering Behavior] Task_Wall Avoidance (engine.Game) (0) | 2024.03.21 |
[Game AI][Steering Behavior] Task_Wall Avoidance (engine.Car) (0) | 2024.03.21 |