orbit
This commit is contained in:
@@ -73,7 +73,7 @@ void Rubiks::onLoad() {
|
||||
|
||||
void Rubiks::run() {
|
||||
|
||||
static float scale = 1.0f, scalePrev = 1.0f;
|
||||
static float scale = 0.8f, scalePrev = 1.0f;
|
||||
|
||||
static glm::vec3 pos(0), rot(0);
|
||||
static glm::vec3 posPrev(0), rotPrev(0);
|
||||
@@ -98,6 +98,7 @@ void Rubiks::run() {
|
||||
camRotPrev = camRot;
|
||||
|
||||
for(auto& b : rubiksCube.getBlocks()) {
|
||||
b.scaleTo(scale);
|
||||
window->getRenderer()->draw(
|
||||
b.getMesh(),
|
||||
b.getTransform(),
|
||||
|
||||
Reference in New Issue
Block a user