it... .WORKS??S??!??!?!
This commit is contained in:
parent
5c62c1585f
commit
103bff0e50
2 changed files with 15 additions and 1 deletions
|
@ -18,7 +18,7 @@ public:
|
||||||
|
|
||||||
float pitch = 0., yaw = -90., roll = 0.;
|
float pitch = 0., yaw = -90., roll = 0.;
|
||||||
|
|
||||||
float movementSpeed = 2.5f;
|
float movementSpeed = 5.0f;
|
||||||
float mouseSensitivity = 0.2f;
|
float mouseSensitivity = 0.2f;
|
||||||
|
|
||||||
Camera(glm::vec3 initialPosition);
|
Camera(glm::vec3 initialPosition);
|
||||||
|
|
14
src/main.cpp
14
src/main.cpp
|
@ -38,6 +38,20 @@ int main() {
|
||||||
simulationInit();
|
simulationInit();
|
||||||
renderInit(window);
|
renderInit(window);
|
||||||
|
|
||||||
|
// Baseplate
|
||||||
|
parts.push_back(Part {
|
||||||
|
.position = glm::vec3(0, -5, 0),
|
||||||
|
.rotation = glm::vec3(0),
|
||||||
|
.scale = glm::vec3(5, 1, 5),
|
||||||
|
.material = Material {
|
||||||
|
.diffuse = glm::vec3(1.0f, 0.5f, 0.31f),
|
||||||
|
.specular = glm::vec3(0.5f, 0.5f, 0.5f),
|
||||||
|
.shininess = 32.0f,
|
||||||
|
},
|
||||||
|
.anchored = true,
|
||||||
|
});
|
||||||
|
syncPartPhysics(parts.back());
|
||||||
|
|
||||||
parts.push_back(Part {
|
parts.push_back(Part {
|
||||||
.position = glm::vec3(0),
|
.position = glm::vec3(0),
|
||||||
.rotation = glm::vec3(0),
|
.rotation = glm::vec3(0),
|
||||||
|
|
Loading…
Add table
Reference in a new issue