package gameEngine.entites.gameComponents; import org.joml.Vector3f; public abstract class GameComponent { Vector3f localPosition = new Vector3f(0,0,0); Vector3f localRotation = new Vector3f(0,0,0); Vector3f localScale = new Vector3f(0,0,0); public abstract GameComponent copy(); public void init() { } public void update() { } public void setLocalPosition(Vector3f pos){ localPosition.set(pos); } public void setLocalRotation(Vector3f rot){ localRotation.set(rot); } public void setLocalScale(Vector3f scale){ localScale.set(scale); } }