Newer
Older
CactusServer / src / main / java / cactusServer / entities / CameraState.java
package cactusServer.entities;

public class CameraState {
	private double distance; // キャラからの距離
	private Angle angle;
	private double tilt; // チルト(rad)
	private double fov; // 視野角(rad)
	
	public CameraState(double distance, Angle angle, double tilt, double fov) {
		this.distance = distance;
		this.angle = angle;
		this.tilt = tilt;
		this.fov = fov;
	}

	public double getDistance() {
		return distance;
	}

	public Angle getAngle() {
		return angle;
	}

	public double getTilt() {
		return tilt;
	}

	public double getFov() {
		return fov;
	}
	
	public void setDistance(double distance) {
		this.distance = distance;
	}

	public void setAngle(Angle angle) {
		this.angle = angle;
	}

	public void setTilt(double tilt) {
		this.tilt = tilt;
	}

	public void setFov(double fov) {
		this.fov = fov;
	}
}