-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathObject3D.cpp
More file actions
39 lines (32 loc) · 804 Bytes
/
Object3D.cpp
File metadata and controls
39 lines (32 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include "Object3D.h"
namespace rme
{
Object3D::Object3D(std::string n)
{
name = n;
position = glm::vec3(0.0);
correction = glm::vec3(0.0);
velocity = glm::vec3(0.0);
direction = glm::vec3(0.0, 0.0, 1.0);
radius = 2.0;
shape = glm::vec3(0.0, 0.0, 0.0);
geometry = CONTAINER;
mass = 1.0;
charge = 0.1;
age = 0.0;
collisions = true;
physics = false;
color = glm::vec3(1.0, 1.0, 1.0);
// material = new Material();
}
Camera::Camera(std::string n) :Object3D(n)
{
geometry = CAMERA;
rotation = glm::vec4(0.0);
physics = true;
radius = 4.0;
}
Light::Light(std::string n) :Object3D(n) { geometry = LIGHT; }
Sphere::Sphere(std::string n) :Object3D(n) { geometry = SPHERE; }
BoxInterior::BoxInterior(std::string n) : Object3D(n) { geometry = BOX_INTERIOR; }
}