add cubes
This commit is contained in:
@@ -172,6 +172,10 @@ bool Rubiks::onEvent(const Archimedes::Event& e) {
|
|||||||
|
|
||||||
camera.moveRel(glm::vec3(0.0f, 0.0f, event.dy));
|
camera.moveRel(glm::vec3(0.0f, 0.0f, event.dy));
|
||||||
|
|
||||||
|
/*for(auto& b : rubiksCube.getBlocks()) {
|
||||||
|
b.scaleRel(0.1f * event.dy);
|
||||||
|
}*/
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} else if(type == app->getEventType(Archimedes::MouseMovedWindowEvent()) && !io.WantCaptureMouse) {
|
} else if(type == app->getEventType(Archimedes::MouseMovedWindowEvent()) && !io.WantCaptureMouse) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user