Changeset 9095 in orxonox.OLD
- Timestamp:
- Jul 4, 2006, 3:11:27 AM (18 years ago)
- Location:
- branches/presentation
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/config.h.in
r8293 r9095 24 24 /* Define to 1 if you have the `dl' library (-ldl). */ 25 25 #undef HAVE_LIBDL 26 27 /* Define to 1 if you have the `m' library (-lm). */28 #undef HAVE_LIBM29 26 30 27 /* Define to 1 if you have the `OpenGL' library (-lOpenGL). */ -
branches/presentation/configure.ac
r8523 r9095 621 621 622 622 # FIXME: Replace `main' with a function in `-lm': 623 A C_CHECK_LIB([m], [main])623 AX_CHECK_REQUIRED_HEADER_LIB([math.h], [m], [sqrt]) 624 624 AX_CHECK_REQUIRED_HEADER_LIB([zlib.h], [z], [zlibVersion],,, [http://www.zlib.net]) 625 625 -
branches/presentation/src/lib/math/quaternion.cc
r9090 r9095 28 28 #define PRINT(x) printf 29 29 #endif 30 31 using namespace std;32 30 33 31 ///////////////// … … 58 56 m[0][1] = x.y; 59 57 m[0][2] = x.z; 60 m[0][3] = 0 ;58 m[0][3] = 0.0; 61 59 m[1][0] = y.x; 62 60 m[1][1] = y.y; 63 61 m[1][2] = y.z; 64 m[1][3] = 0 ;62 m[1][3] = 0.0; 65 63 m[2][0] = z.x; 66 64 m[2][1] = z.y; 67 65 m[2][2] = z.z; 68 m[2][3] = 0 ;69 m[3][0] = 0 ;70 m[3][1] = 0 ;71 m[3][2] = 0 ;72 m[3][3] = 1 ;66 m[2][3] = 0.0; 67 m[3][0] = 0.0; 68 m[3][1] = 0.0; 69 m[3][2] = 0.0; 70 m[3][3] = 1.0; 73 71 74 72 this->from4x4(m); … … 285 283 int i, j, k; 286 284 287 int nxt[3] = {1, 2, 0};285 static int nxt[3] = {1, 2, 0}; 288 286 289 287 tr = m[0][0] + m[1][1] + m[2][2]; -
branches/presentation/src/world_entities/npcs/generic_npc.cc
r9087 r9095 222 222 Vector dir = (currentAnimation.v - this->getAbsCoor()); 223 223 dir.y = 0.0f; 224 dir. getNormalized();224 dir.normalize(); 225 225 this->setAbsDir(Quaternion(dir, Vector(0.0, 1.0, 0.0)) * Quaternion(-M_PI_2, Vector(0.0, 1.0, 0.0))); 226 226
Note: See TracChangeset
for help on using the changeset viewer.