From 4160bddc4b8752ccb0e7363bc7f2dc3de917ac32 Mon Sep 17 00:00:00 2001 From: Wellinator Date: Fri, 9 Apr 2021 13:19:12 -0300 Subject: [PATCH] Update scale and speed rotation --- src/samples/cube/objects/cube.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/samples/cube/objects/cube.cpp b/src/samples/cube/objects/cube.cpp index cb1f8ab..b6b4123 100644 --- a/src/samples/cube/objects/cube.cpp +++ b/src/samples/cube/objects/cube.cpp @@ -11,9 +11,9 @@ Cube::Cube( TextureRepository *t_texRepo ) { PRINT_LOG("Creating cube"); texRepo = t_texRepo; - speed = 1.5F; + speed = 1.2F; - mesh.loadObj("meshes/cube/", "cube", 6.0F, true); + mesh.loadObj("meshes/cube/", "cube", 10.0F, true); mesh.position.set(20.00F, 40.00F, 10.00F); mesh.rotation.x = -1.566F; mesh.rotation.z = 1.566F; @@ -61,7 +61,7 @@ Vector3 *Cube::getNextPosition(const Pad &t_pad, const Camera &t_camera) void Cube::rotate(const Pad &t_pad){ //if (t_pad.rJoyH >= 200) //else if (t_pad.rJoyH <= 100) - mesh.rotation.x += 0.01; - mesh.rotation.y += 0.01; - mesh.rotation.z += 0.01; + mesh.rotation.x += (0.01 * speed); + mesh.rotation.y += (0.01 * speed); + mesh.rotation.z += (0.01 * speed); } \ No newline at end of file