I'm developing a game, I will generate objects. I have create an interface called
IObject which has the following properties:
String tag // Tag for the object Vector3 position // Where the element is positioned Mesh mesh // This is how the object looks like Material material // The material from which the object is build void draw() // Method which draw the object
Now I wonder which will be better design practice to create another interface which takes all the things associated with drawing (position, mesh, material and the draw method) or to leave it this way?