Commit Graph

204 Commits

Author SHA1 Message Date
ejcoumans
6f80b98a67 - fix issue with convex cast: results further away (larger hitfraction) could overwrite closer results
- minor naming convention thing (variables start with lower case)
- renamed MotorDemo
- added ConcaveConvexcastDemo, Thanks John McCutchan (JMC)
2007-12-06 02:54:29 +00:00
ejcoumans
d53f2875e5 minor fixes, only btBvhTriangleMeshShape should provide getShapeType(), add get methods for motor limits in btHingeConstraint. 2007-12-06 01:41:07 +00:00
ejcoumans
1245995c84 Added convex cast query to collision world.
Thanks to John McCutchan (JMC)
2007-12-06 00:51:24 +00:00
ejcoumans
1c82712b72 added newline at end, to avoid warning.
Thanks verizon for reporting!
2007-12-01 19:56:18 +00:00
ejcoumans
86f0575291 fixed misleading name 'numTriangleIndices' into 'numTriangles', thanks Sean Tasker for reporting:
http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=1733
2007-11-30 06:59:12 +00:00
ejcoumans
f2c9588969 Added raycast against trianglemesh. Will be extended to object cast soon.
Thanks John Rowe (JMC)
2007-11-29 21:24:51 +00:00
ejcoumans
174f6009bb make getNumPoints const correct, add const getPoints(). Thanks Dirk
http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=1725
2007-11-28 20:14:01 +00:00
ejcoumans
e252f5cadd Bugfix: allow btCollisionObjects (non-btRigidBody) to interact properly with btRigidBody for cache-friendly btSequentialImpulseConstraintSolver.
Thanks Andy O'Neil for pointing this out.
2007-11-28 03:17:09 +00:00
ejcoumans
5c1609fb23 don't fail if spheres have identical center, use arbitrary separating normal (1,0,0)
Thanks Sean Tasker for reporting!
http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=1681
2007-11-21 04:17:00 +00:00
ejcoumans
cab75b53ec added hierarchical profiling (needs more cleanup)
avoid dynamic allocations in btRaycastVehicle
2007-11-21 03:00:40 +00:00
ejcoumans
f5fb2d77eb fixed include path (don't use system include <>, but "" instead)
Thanks to Stephen (shatcher) for reporting!
http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=1696&p=6412#p6412
2007-11-17 17:16:19 +00:00
ejcoumans
56e072ccc6 fixed memory leak in btMultiSapBroadphase,
fixed hash function (typo, should use 2 proxies)
Thanks to Stephen (shatcher) for reporting and fixes!
http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=1696
2007-11-17 17:07:58 +00:00
ejcoumans
7ef4eab189 use better tolerance, instead of hard-coded 0.0001 inside the btMultiSphereShape supporting vector implementation.
Thanks to Phil Knight for reporting and fixing this issue (it could lead to failing collisions under certain conditions).
2007-11-07 13:39:05 +00:00
ejcoumans
282cbdcdd9 applied patch contributed by Tim Johansson: adds support for multiple mesh parts in combination with bvh, add short index support for meshes. 2007-11-06 06:47:04 +00:00
ejcoumans
e755d1ed4e added some comments, to clarify unit-test/brute force implementations. 2007-11-02 01:14:29 +00:00
ejcoumans
0723448895 disabled btTriangleMeshShape, to avoid usage, it is very slow performing for larger triangle meshes. Please use the derived btBvhTriangleMeshShape instead. 2007-11-01 23:59:22 +00:00
ejcoumans
2aec2a9969 Added some comments about the btPersistentManifold (contact point cache for potential overlapping pairs)
http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=1608
2007-11-01 23:42:17 +00:00
ejcoumans
dc4aacb03b add ability for user pair callback, this can be used to keep track of objects, overlapping a certain AABB/shape. 2007-11-01 18:21:17 +00:00
ejcoumans
f3424f491c cleanup memory in CcdPhysicsDemo, RagdollDemo, ConcaveDemo, BspDemo (work in progress) 2007-11-01 05:50:50 +00:00
ejcoumans
a146bbc293 more memory leak fixes in demo and btSimpleBroadphase.
- deleting object (END key) needs to release
- call destructor of pair cache
2007-10-31 08:17:48 +00:00
ejcoumans
a101719687 - removed warnings in GLUI, thanks Jorrit Tyberghein for the patch!
- removed memory leaks from BasicDemo and Bullet library (other demos needs to be cleaned up!)
- added memory leak debugging functionality in btAlignedAlloc.h: #define BT_DEBUG_MEMORY_ALLOCATIONS
2007-10-31 08:00:03 +00:00
ejcoumans
d17a8dae0e updated autogenerated msvc projectfiles, moved destructor in CPP file, it was causing some random crash under msvc 6.0 (todo find out why) 2007-10-25 05:11:19 +00:00
ejcoumans
ec76f2e0a3 - keep track of all memory allocations (gNumAllignedAllocs/gNumAllignedFree)
All memory allocations in Bullet go through btAlignedAlloc/btAlignedFree
Fix in hinge constraint constructors, thanks Marcus Hennix!
2007-10-22 22:23:10 +00:00
ejcoumans
c80d1532f6 made access to mesh interface more consistent, so btConvexTriangleMeshShape uses also 'getMeshInterface', similar to btTriangleMeshShape.
Thanks Et3D for pointing this out here: http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=1590
2007-10-21 21:04:04 +00:00
ejcoumans
e7caaa28d3 re-organized memory (stack and pool) allocators. this lets the user pass in their own memory allocators. 2007-10-20 02:23:39 +00:00
ejcoumans
1e4e52306f don't crash when running out of pool memory, just use btAlignedAlloc/btAlignedFree instead 2007-10-19 21:25:58 +00:00
ejcoumans
dbe502c5a8 prepare for Box2D style gui demo 2007-10-18 06:37:36 +00:00
ejcoumans
239d88985f fix for heightfield, thanks SMJ/Spangle and Jay Lee for testing.
http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=1482
2007-10-16 21:57:05 +00:00
ejcoumans
b5a498e8bf add get method for persistent manifold 2007-10-16 20:00:34 +00:00
ejcoumans
6303d98844 - use mfc directly, instead of cellDmaSmallGet (allow sizes under 32 bytes, instead of 16)
- align btBroadphaseProxy to 16 bytes
2007-10-16 00:52:23 +00:00
ejcoumans
23921729ea adding padding to broadphase proxy, to make it 16 bytes (helps some platforms to run) 2007-10-15 02:35:55 +00:00
ejcoumans
ffcdb0f93d BulletMultiThreaded needs to refreshContactPoint for contact manifold (this has been moved to the collision detector, instead of constraint solver)
BulletMultiThreaded support function for box shouldn't compensate for the collision margin anymore
2007-10-14 01:51:07 +00:00
ejcoumans
913b141c23 fix some warning, need virtual destructor 2007-10-14 00:12:22 +00:00
ejcoumans
715611060d integrated StressTest into BasicDemo. 2007-10-14 00:03:10 +00:00
ejcoumans
ea3dfb4ca3 made 'calculateLocalInertia' const, thanks to cgripeos, see http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=1514
- applied a large patch to remove warnings
Thanks to Enrico, see http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=1568
- removed SSE includes, added #incude <string.h> for memset in Extras/quickstep, thanks Eternl Knight
- disabled 16-byte alignement on btQuadWord class, it causes problems under PS3 Linux. Need to check out why.
2007-10-13 23:41:37 +00:00
ejcoumans
7a1e53935f make MSVC 6 compile, remove 'int i' out of the for loops 2007-10-12 06:34:01 +00:00
ejcoumans
62103c94de fixed growing of hash table, to avoid hard limit on overlapping pairs 2007-10-12 05:53:27 +00:00
ejcoumans
eff4fe8ec8 more work on hashed pairmanager. growing doesn't work yet, so need to allocate enough room for the overlapping pairs in advance.
boxbox reports contact point in B, rather then average point
box, cylinder use halfextents corrected for scaling and margin. made the margin in this halfextents explicit in the 'getHalfExtentsWithMargin' and 'getHalfExtentsWithoutMargin'
integrated changed for ODE quickstep solver
replaced inline with SIMD_FORCE_INLINE
some minor optimizations in the btSequentialImpulseConstraintSolver

added cone drawing (for X,Y,Z cones)
2007-10-12 02:52:28 +00:00
ejcoumans
1baa61bc8d function isn't inline 2007-10-11 03:39:49 +00:00
ejcoumans
52eb5fa1a4 don't use multisap yet in basic demo.
fix crash in multi sap (due to new pair manager)
2007-10-11 03:32:37 +00:00
ejcoumans
0405ce278a use size_t instead of int, for allocator
added hashtable based PairManager, thanks Pierre Terdiman and Erin Catto
improved friction in 'cachefriendly' solver
moved 'refreshcontactpoints' into collision detection, instead of solver
avoid linear search for contact manifolds, by storing an index
ignore margin for sphere shape (its entire radius is already margin)
avoid alignment checks in BVH serialization, they don't compile on 64-bit architectures
made 'bomb' box more heavy
2007-10-11 03:17:54 +00:00
ejcoumans
118ac651dd updated IBM Cell SDK makefiles 2007-10-03 00:42:18 +00:00
ejcoumans
23a197b3dc add alignment for broadphase proxy/handle. need to benchmark this, and check it doesn't degrade the performance on other platforms. Otherwise make it conditional only when USE_LIBSPE2 is defined 2007-10-03 00:41:55 +00:00
ejcoumans
1d43b5ebae changed default stack size to 2 MB. This is still overly conservative probably. Need some deeper investigation on default memory sizes... 2007-09-30 04:43:34 +00:00
ejcoumans
a98ccc839e enable double precision for triangle indices in BT_USE_DOUBLE_PRECISION mode (need to review this) 2007-09-30 02:28:04 +00:00
ejcoumans
a38de566c6 make sure aligned structures/classes use the btAlignedAlloc/btAlignedFree, by overriding the operator new/delete for that struct/class.
integrated some contributions from IBM Germany for libspe2
2007-09-25 06:41:57 +00:00
ejcoumans
08d036afc7 multi-threading improvements: optionally use software caching (IBM/PS3), move some code from cpp to header to inline. 2007-09-20 22:42:56 +00:00
ejcoumans
f50f3ad722 fix for restitution
added preliminary continuous dynamics world (under construction, not ready yet)
fix crash on when restarting simplex demo using spacebar, Thanks Jorrit Tyberghein for reporting!
2007-09-20 05:24:03 +00:00
ejcoumans
a0e92efebb more fixes in serialization/BVH/endianness 2007-09-19 23:04:37 +00:00
ejcoumans
287f11de01 more endianness swapping fun for BVH serialization. 2007-09-19 22:37:22 +00:00