Newer
Older
AlgebraicDataflowArchitectureModel / GameEngine / src / main / java / gameEngine / entites / Camera.java
NoranekoFelician 9 days ago 548 bytes ・MoveStraightコンポーネントを追加
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;
    }
    public Vector3f getPosition() {
        return transform.position;
    }
    public void move(float x, float y, float z) {
        transform.position.add(x, y, z);
    }

}