Changeset 1376
- Timestamp:
- May 12, 2012, 6:17:22 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/orbital/orbital.cpp
r1371 r1376 43 43 { 44 44 #if 0 45 for (int j = 0; j < 20; j++) 46 { 47 for (int i = 0; i < 20; i++) 45 int max_x = 20; 46 int max_y = 20; 47 for (int j = 0; j < max_x; j++) 48 { 49 for (int i = 0; i < max_y; i++) 48 50 { 49 51 m.SendCommand(((i + j) % 2) ? "sc.0,.1,.2,1,scb.0,.1,.2,1" … … 51 53 m.SendCommand("ac4,2,44,40,0,0,ty-1,ad4,40,0,ry45"); 52 54 m.Scale(vec3(std::sqrt(0.5f))); 53 m.Translate(vec3(i * 44 - 440, 0, j * 44 - 440)); 55 m.Translate(vec3( i * 44 - (44 * (max_x * 0.5f)), 0, 56 j * 44 - (44 * (max_y * 0.5f)))); 54 57 m.Flush(); 55 58 } -
trunk/src/worldentity.cpp
r1335 r1376 29 29 m_rotation = quat(1); 30 30 m_velocity = vec3(0); 31 m_rotation_velocity = vec3(0); 31 32 m_bbox[0] = m_bbox[1] = vec3(0); 32 33 -
trunk/src/worldentity.h
r1335 r1376 28 28 vec3 m_velocity; 29 29 quat m_rotation; 30 vec3 m_rotation_velocity; 30 31 vec3 m_bbox[2]; 31 32
Note: See TracChangeset
for help on using the changeset viewer.