package gameEngine.geometry; import org.joml.Vector3f; public class Transform { public Vector3f position; public Vector3f rotation; public Vector3f scale; public Transform() { this.position = new Vector3f(0, 0, 0); this.rotation = new Vector3f(0, 0, 0); this.scale = new Vector3f(1, 1, 1); } public Transform(Transform other) { this.position = new Vector3f(other.position); this.rotation = new Vector3f(other.rotation); this.scale = new Vector3f(other.scale); } public void setPosition(float x, float y, float z) { position.x = x; position.y = y; position.z = z; } public void setPosition(Vector3f newPosition){ position = newPosition; } public void setRotation(float x, float y, float z) { rotation.x = x; rotation.y = y; rotation.z = z; } public void setRotation(Vector3f newRotation){ rotation = newRotation; } public void setScale(float x, float y, float z) { scale.x = x; scale.y = y; scale.z = z; } public void setScale(Vector3f newScale){ scale = newScale; } }