Changeset 1335
- Timestamp:
- May 2, 2012, 8:10:33 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/orbital/tank.h
r1333 r1335 32 32 WorldEntity::TickGame(seconds); 33 33 34 m_rotation *= quat::rotate(seconds * 20.f, vec3(0, 1, 0)); 34 35 m_angle += seconds * 50.f; 35 36 } … … 46 47 } 47 48 48 mat4 model = mat4::translate(m_position); 49 49 mat4 model = mat4::translate(m_position) * mat4(m_rotation); 50 50 m_body.Render(model); 51 51 -
trunk/src/worldentity.cpp
r1310 r1335 27 27 { 28 28 m_position = vec3(0); 29 m_rotation = vec3(0);29 m_rotation = quat(1); 30 30 m_velocity = vec3(0); 31 31 m_bbox[0] = m_bbox[1] = vec3(0); -
trunk/src/worldentity.h
r1310 r1335 26 26 public: 27 27 vec3 m_position; 28 vec3 m_rotation;29 28 vec3 m_velocity; 29 quat m_rotation; 30 30 vec3 m_bbox[2]; 31 31
Note: See TracChangeset
for help on using the changeset viewer.