Commit Graph
2178 Commits
Author SHA1 Message Date
ejcoumans 897d1491fa enable aabb compression in ColladaDemo btTriangleMesh. 2007-03-12 23:20:41 +00:00
ejcoumans 0a5b19864e allow to use compression on btTriangleMesh 2007-03-12 23:19:02 +00:00
ejcoumans b2351c84f3 optional define for 32bit handles in Broadphase, which allows number of objects to exceed 32767 2007-03-12 20:14:29 +00:00
ejcoumans c856a61dce updated version/changelog 2.45 2007-03-08 16:04:17 +00:00
ejcoumans 02e5f2dd8e void btDiscreteDynamicsWorld::solveConstraints(btContactSolverInfo& solverInfo)
sortedConstraints.heapSort(btAlignedObjectArray<btTypedConstraint*>::less());

should be

sortedConstraints.heapSort(btSortConstraintOnIslandPredicate);
Thanks  	Clemens Unterkofler for pointing this out!
2007-03-08 01:59:04 +00:00
ejcoumans 1655fbc2c0 fixed some windows related defines, and made btClock optional (behind #define) 2007-03-07 00:33:11 +00:00
ejcoumans 57883344df removed testing assert(0) 2007-03-07 00:22:40 +00:00
ejcoumans adfdea5ca6 replaced #include "new.h" to #include <new> 2007-03-06 23:40:06 +00:00
sjbaker 3c1ba0023b NULL is not yet defined because this header is sometimes included before stdio.h or stddef.h - rather than change a bazillion places where the header is included, I'll just use 0 instead. 2007-03-06 18:14:37 +00:00
sjbaker a4a3474fb5 The macro 'btFullAssert' is used like this:
btFullAssert ( yadda_yadda ) ;

...in the btScalar.h header, it's defined as:

    #define btFullAssert

...which means that the statement above becomes:

    ( yadda_yadda ) ;

...which means that code may actually be compiled and executed (unnecessarily) - and even when the code is something simple like:

    ( i > 0 && i < 3 ) ;

...the GCC tosses out a 'statement with no effect' warning - before
it optimises away the code.

The fix is:

   #define btFullAssert(x)

...so that the macro still takes a parameter which is now removed
from the sources so you get:

    ;

...which is guaranteed not to generate code.
2007-03-06 18:06:28 +00:00
ejcoumans 8fd8a85eee fixed memory leak, thanks AshMcConnell for reporting!
http://continuousphysics.com/Bullet/phpBB2/viewtopic.php?t=1009
2007-03-06 16:44:22 +00:00
ejcoumans 79d53cd346 updated version 2007-03-06 10:26:11 +00:00
ejcoumans d70e60cc9a updated changelog 2007-03-06 10:23:44 +00:00
ejcoumans 054d672592 - removed STL from the Bullet library: replace std::vector by btAlignedObjectArray. Also removed the std::set for overlapping pair set, and turned it into an overlapping pair array. The SAP only adds objects, never removed. Removal is postponed for during traversal of overlapping pairs (duplicates and non-overlapping pairs are removed during that traversal).
- added heap sort and binary search/linear search to btAlignedObjectArray
- fixed wrong cast, thanks Hamstray, http://www.continuousphysics.com/Bullet/phpBB2/viewtopic.php?t=1015
2007-03-06 09:59:17 +00:00
ejcoumans f8b714cd42 disable scaling in collada converter, it doesn't give good results in most files. 2007-02-28 00:48:10 +00:00
ejcoumans 1db0721318 removed unit meter in jenga.dae 2007-02-26 05:18:52 +00:00
ejcoumans b73900bc60 Improved performance of convex collision shapes, cache local AABB instead of recomputation. This fixes issue with very slow performance in larger .bsp levels.
Moved some asserts into 'btFullAssert', which is disabled by default (see btScalar.h to enable them). This is to speed-up debugging.
2007-02-26 04:59:05 +00:00
ejcoumans 559c4e85d8 updated ChangeLog.txt 2007-02-25 06:14:28 +00:00
ejcoumans e610598d33 - Added compressed/quantized AABB tree, 16 bytes per node, while supporting 32-bit (triangle) indices. Should be faster and smaller then original version (quantized aabb check is done in integer space)
Original aabb nodes are 44 bytes (with full floating point precision and additional part index)
- added meter-unit scaling support in ColladaConverter.cpp
2007-02-25 06:11:23 +00:00
ejcoumans 7efef8e394 bumped up version, and ChangeLog.txt 2007-02-21 21:24:25 +00:00
ejcoumans ce100b31a4 updated library name from bullet to bulletcollision 2007-02-21 21:22:18 +00:00
ejcoumans beb0ace1fc Fix interface for comparison/integration files in alternative EPA solvers. 2007-02-21 21:00:16 +00:00
ejcoumans bda1507ea9 added compound shape for raytrace testing 2007-02-14 05:25:11 +00:00
ejcoumans 34c979bd02 double precision mode uses double precision epsilons/maximum (DBL_EPSILON instead of FLT_EPSILON) 2007-02-14 04:12:32 +00:00
ejcoumans 42278e58dd fixes to add improved double-precision for raycasts 2007-02-14 04:10:55 +00:00
ejcoumans 9b94416d61 allow single raycast to be performed on objects 2007-02-14 04:09:17 +00:00
ejcoumans 4d6ec84630 always update position, even for sleeping objects (is workaround, because sleeping objects never get their motionstate update), needs fixing for optimization 2007-02-14 04:02:14 +00:00
ejcoumans a5bf6a1254 use solvermode 'randomized' and not warmstarting 2007-02-13 16:47:04 +00:00
ejcoumans bf68a742cc by default, disable warmstarting, enable random ordering,
user can override this using solver->setSolverMode(...)
2007-02-13 16:14:55 +00:00
ejcoumans c4a83539ca terminate the cleaned filename with zero character, thanks to Jay for reporting this fix! 2007-02-13 16:12:20 +00:00
ejcoumans 7453af5dde more fixes in Collada Physics conversion, related to convex meshes and uninitialized mass data. 2007-02-01 02:51:59 +00:00
ejcoumans 8a98639d78 fixed a crashing bug (NULL strings) and change the viewing angle of default camera in the demo 2007-01-31 20:57:14 +00:00
ejcoumans e8ca371a71 Workaround for bad PhysX Collada .dae export from Maya:
It seems whenever the <rigid_body> has <extra> 	<technique profile="PhysX"><kinematic>true</kinematic> this <rigid_body> should have <dynamic> false</dynamic>.
2007-01-31 03:22:52 +00:00
ejcoumans 581468ceec Added btCapsuleShape. This could already be simulated by simply adding 2 spheres to the btMultiSphereShape, but this was bad documented/unknown.
For tapered capsules, you can still use btMultiSphereShape, just pass 2 spheres with different radius.
2007-01-30 00:09:08 +00:00
ejcoumans 7b5301bb43 accept constraint with single rigidbody 2007-01-19 03:48:54 +00:00
ejcoumans 959e4498f4 removed obsolete libs in .pc.in file
-lbulletccdphysics -lbulletphysicsinterfacecommon
2007-01-17 18:58:48 +00:00
sjbaker b924cb57d3 Fixed wheels so they rotate in the correct direction. 2007-01-07 05:41:50 +00:00
ejcoumans c268b290dd update changelog for aabb tree building 2007-01-04 22:35:22 +00:00
ejcoumans ca973e9322 Fixed AABB tree building, which failed for certain large triangle meshes due to stack overflow.
Now it has a safer check for unbalanced tree, and forces them to be balanced.
2007-01-04 22:31:31 +00:00
ejcoumans 99337454e3 Added Steve Baker and Jay Lee as contributors. Added double precision to autogenerated msvc projectfiles as build-configuration. 2006-12-27 05:35:20 +00:00
ejcoumans 0abb399fce updated msvcgen for double precision configurations 2006-12-27 03:42:14 +00:00
ejcoumans af5cfb838a updated Jamfiles so only the appropriate Bullet libraries gets installed, not the helper/internal ones. 2006-12-27 01:34:54 +00:00
ejcoumans 5929b2b79d fixed jam 'install' to properly copy right headerfiles in the destination directory 2006-12-26 17:16:40 +00:00
sjbaker e9b21e21a6 Pathnames between #include files that are intended to be used within application code should not depend on the paths to the subdirectories being known to the compiler because this will not always be the case when an end-user includes your headers.
Includes of files in the local hierarchy must not use <...> please stick with "..."
2006-12-26 15:33:28 +00:00
sjbaker 208bbe7594 Added a set of empty, classless 'extern "C"' probe functions to allow '.so' loaders and application domain 'autotools' to easily and unambiguously check for the correct installation of the various bullet libraries.
eg:

  bulletmath_suffix="-lbulletmath"
  bulletcollision_suffix="-lbulletcollision"
  bulletdynamics_suffix="-lbulletdynamics"
  dnl Check bulletmath library
  AC_CHECK_LIB(bulletmath, btBulletMathProbe, true,
  AC_MSG_ERROR([there seems to be a problem with the bulletmath library]))
  LIBS="$bulletmath_suffix $LIBS"
  dnl Check bulletcollision library
  AC_CHECK_LIB(bulletcollision, btBulletCollisionProbe, true,
  AC_MSG_ERROR([there seems to be a problem with the bulletcollision library]))
  LIBS="$bulletcollision_suffix $LIBS"
  dnl Check bulletdynamics library
  AC_CHECK_LIB(bulletdynamics, btBulletDynamicsProbe, true,
  AC_MSG_ERROR([there seems to be a problem with the bulletdynamics library]))
  LIBS="$bulletdynamics_suffix $LIBS"
2006-12-26 00:39:32 +00:00
ejcoumans 24691e8eb8 reverted jam buildsystem, until changed for make is working,
minor fix in island processing
2006-12-25 20:39:39 +00:00
sjbaker 8d92ca34c2 Windows programmers: Beware! The case of the filename is significant in #include directives - even though the lame-ass M$ compiler doesn't check it. 2006-12-23 16:20:00 +00:00
ejcoumans a354cb67c4 minor tweak in msvcgen 2006-12-23 07:19:40 +00:00
ejcoumans bba68d6072 work on buildsystem to allow double precision visual build setting in autogenerated visual studion projectfiles 2006-12-23 06:53:51 +00:00
ejcoumans fbcbc7021c fix Jam build, so it builds with GLUT demos (hopefully not breaking Make) 2006-12-23 03:09:33 +00:00