Newer
Older
AlgebraicDataflowArchitectureModel / GameEngine / src / main / java / gameEngine / entites / Camera.java
package gameEngine.entites;

import org.joml.Vector3f;

public class Camera extends Entity{

    public enum ProjectionType{
        PERSPECTIVE, //透視投影
        ORTHOGRAPHIC, //平行投影
    }

    private final ProjectionType projection;

    public Camera(String id, ProjectionType projection){
        super(id);
        this.projection = projection;
        this.position = new Vector3f(0, 0, 0); // 初期位置を原点に設定
    }

    private Vector3f position;

    public Vector3f getPosition() {
        return position;
    }

    public void move(float x, float y, float z) {
        position.add(x, y, z);
    }

}