qwerty5683

10-24-2017, 07:54 PM

I'm trying to make a cube where the center of mass of the cube located at (−0.5, 0.5, 0.0) and it spins continuously

about x-axis and its fix point of rotation is at its center of mass (−0.5, 0.5, 0.0). I know the cube would have 36 vertices so I would have something like

vec4 cube_vertices[36] = {...};

Not sure where to go from here. I need help making the cube itself and then need help with making it spin. Any help would be appreciated.

about x-axis and its fix point of rotation is at its center of mass (−0.5, 0.5, 0.0). I know the cube would have 36 vertices so I would have something like

vec4 cube_vertices[36] = {...};

Not sure where to go from here. I need help making the cube itself and then need help with making it spin. Any help would be appreciated.