Commit Graph

156 Commits

Author SHA1 Message Date
erwin.coumans
22a79e61b1 updated Jamfile build system for reorganized files/folders 2008-10-11 05:23:00 +00:00
john.mccutchan
37f6b006af Move some code (mainly constructors) into header files.
Add parameter to optionally compute local AABB for ConvexPointCloudShape
Add setter and getter for cached local AABB in PolyhedralConvexShape
2008-10-08 16:56:08 +00:00
john.mccutchan
4e70343a8b by default, a btTriangleIndexVertexArray has no setPremadeAabb, so initialize m_hasAabb to zero. 2008-10-02 22:15:53 +00:00
erwin.coumans
0ff15db3f3 + capsule should subtract margin, and take local scaling into account.
+ boxshape uses btFsels
+ add assert in btGjkPairDetector that the new non-virtual method produces the same result as old non-virtual
2008-09-30 18:37:01 +00:00
erwin.coumans
9f28b2bc12 Improve damping formula in btRigidBody::applyDamping
Thanks to sparkprime, see http://code.google.com/p/bullet/issues/detail?id=74
Fixed btCompoundShape/btCapsuleShape/btGImpactShape for missing m_shapeType, and added an assert in DemoApplication::localCreateRigidBody for invalid shape types.
2008-09-30 00:34:58 +00:00
john.mccutchan
2b71784c86 Make getShapeType() a non virtual function.
Add localGetSupportVertexNonVirtual, localGetSupportVertexWithoutMarginNonVirtual, getAabbNonVirtual and getMarginNonVirtual methods to convex shape classes
2008-09-29 22:47:05 +00:00
erwin.coumans
682a0a1b90 fixed btSoftBodyConcaveCollisionAlgorithm, wrong bounding box transformation
added vertex welding option for btTriangleMesh (brute-force slow)
reject appendFace for some degenerate triangles (all 3 vertices/nodes need to be different)
add setVelocity method for btSoftBody
2008-09-26 21:59:03 +00:00
erwin.coumans
752eb583d0 some minor work on soft body, to make it easier to integrate into apps. 2008-09-24 02:41:50 +00:00
erwin.coumans
8db0285d4f attempt to support negative local scaling for btConvexHullShape, btConvexInternalShape-derived classes and btScaledBvhTriangleMeshShape 2008-09-20 23:47:38 +00:00
erwin.coumans
93d1d24234 Some changes in rendering, to get shadows for trimeshes
Add dynamic aabb tree (btDbvt) optimization for btCompoundShape/btCompoundCollisionAlgorithm
Add btTransformAabb util, todo: deploy it throughout the codebase
2008-09-10 05:20:04 +00:00
erwin.coumans
6c426f9545 make those members private, in btScaledBvhTriangleMeshShape 2008-09-07 05:30:35 +00:00
erwin.coumans
6b365a7ca5 Add get methods for localAabbMin/localAabbMax, required for btScaledBvhTriangleMeshShape 2008-09-07 05:00:55 +00:00
erwin.coumans
d836e83ea2 Added btScaledBvhTriangleMeshShape. The btScaledBvhTriangleMeshShape allows to instance multiple differently scaled versions of an existing btBvhTriangleMeshShape.
All those instances re-use the same btBvhTriangleMeshShape child shape (and its btOptimizedBvh).
2008-09-07 04:59:57 +00:00
erwin.coumans
398d681b22 fixed compile error for btConvexTriangleMeshShape.
Thanks to slackydeb for the report, http://bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=2567
2008-09-05 18:30:18 +00:00
erwin.coumans
359c84d3b3 Fix previous commit, accidently removed some aabbMin/aabbMax assignments.
move margin calculation for aabb before basis transform.
2008-09-05 00:26:02 +00:00
erwin.coumans
d8a5bf2c9c Calculation of bounding box: margins should be added before basis transform.
Disable btSphereBoxCollisionAlgorithm, it is broken.
More fixes for btSimpleBroadphase
Moved quickstep to Extras/quickstep folder, so developers don't get confused which constraint solver is default.
2008-09-04 22:53:24 +00:00
erwin.coumans
ae1702cfca Bugfix in btOptimizedBvh, update curNodeSubPart correctly.
Thanks to Ole K. for the report and patch:
http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=2558&p=10251#p10251
2008-09-04 18:31:28 +00:00
erwin.coumans
7380db7653 Methods to compute more accurate inertia tensor for btCompoundShape and btConvexTriangleMeshShape.
Thanks to Ole K. for the fixes, see http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=2562
2008-09-04 18:20:32 +00:00
erwin.coumans
cc3e3a851f fix for btPolyhedralShape::setLocalScaling (and derived classes such as btConvexHullShape): recalcLocalAabb.
Thanks to pico for the report: http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=2550&p=10207#p10207
2008-09-02 17:32:57 +00:00
erwin.coumans
f655eff89f add support for premade aabb in btStridingMeshInterface/btBvhTriangleMeshShape,
Thanks Roy Eltham, http://code.google.com/p/bullet/issues/detail?id=70
2008-08-29 05:39:17 +00:00
erwin.coumans
80f80df7e3 set linear/angular velocity to zero when objects are asleep
Thanks to  http://code.google.com/p/bullet/issues/detail?id=73
improve performance of btConvexTriangleMeshShape::recalcLocalAabb
Thanks to fullmetalcoder, http://code.google.com/p/bullet/issues/detail?id=67#makechanges
2008-08-29 05:30:50 +00:00
erwin.coumans
b21d8caa9a Added more Doxygen comments for classes in src/BulletCollision/CollisionShapes 2008-08-27 22:01:50 +00:00
erwin.coumans
db2514e930 provide serialization for btOptimizedBvh, using btQuantizedBvh. 2008-08-27 01:15:34 +00:00
erwin.coumans
79b6f7a772 Removed (circular) dependency between broadphase and collision shapes: moved parts CollisionShapes/btOptimizedBvh into BroadphaseCollision/btQuantizedBvh 2008-08-26 23:40:51 +00:00
erwin.coumans
8eafab367f syntax error fix, removed comma, see http://code.google.com/p/bullet/issues/detail?id=76&can=1
Fix btOptimizedBvh, thanks to reltham, http://code.google.com/p/bullet/issues/detail?id=72&can=1
2008-08-19 15:57:01 +00:00
erwin.coumans
4894f24c9a Fixes for FPU exceptions, thanks to Phil Knight for reporting and John McCutchan for fix/workarounds.
Added new cluster collision methods for soft bodies, thanks to Nathanael Presson.
Enable/disable textures/shadows for specific demos.
2008-08-01 01:04:45 +00:00
erwin.coumans
af4520801b + Fix btSubsimplexConvexCast
Thanks to Nacho, http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=2422)
Fix in rendering, GL_STENCIL
+ btTriangleIndexVertexArray indices should be unsigned int/unsigned short int,
+ Made InternalProcessAllTriangles virtual, thanks to 
Both thank to Fullmetalcoder, http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=2401
+clamp impulse for btPoint2PointConstraint
Thanks to Martijn Reuvers, http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=2418
+ Free memory of bvh, pass in scaling factor (optional)
Thanks to Roy Eltham, http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=2375
2008-07-31 19:44:28 +00:00
erwin.coumans
8f3e9603f3 + fixed issue related to temporary/root collision shape in btCollisionObject
+ normalize plane normal input for btStaticPlaneShape
+ fixed issue related to swapped collision detectors (SphereTriangleDetector in particular)
Thanks a lot to Andrey Tuganov for reporting the issue and his reproduction case ( http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=2143 )
2008-07-11 05:39:31 +00:00
john.mccutchan
31dfbf55e1 Compile fixes
Added getOwnsBvh to btBvhTriangleMeshShape
2008-07-10 23:22:29 +00:00
erwin.coumans
1c0fa00bc7 + provide access to 'root' collision shape, in case the original collision shape is temporarily replaced by a child collision shape.
+ added MultiMaterialDemo showing how to use the new btTriangleIndexVertexMaterialArray.
Thanks to Alex Silverman for this contribution!
2008-07-10 22:19:30 +00:00
erwin.coumans
50d41b624b Finally applied patch to removeChildShape from btCompoundShape
http://code.google.com/p/bullet/issues/detail?id=51
Thanks to Ola Røer Thorsen for the patch!
2008-06-26 23:29:42 +00:00
erwin.coumans
ea86559480 removed some warnings 2008-05-21 23:29:35 +00:00
erwin.coumans
bd97c5e569 Fixed warnings in Bullet/src core library
Thanks Martijn Reuvers from Two Tribes B.V. (www.twotribes.com) for the patch

To make this work more visible, suppress warnings in external libraries in Extras (COLLADA_DOM, libxml and glui contain many warnings)
Added PreprocessorDefinitions: _CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE to vcproj files
2008-05-10 18:00:21 +00:00
erwin.coumans
fd5057ec5a fixed build/project files 2008-04-10 21:28:37 +00:00
erwin.coumans
1139c06a4d more soft body preparations, moved some parts from Demo/SoftBody to src/BulletDynamics/SoftBody
moved Extras/ConvexHull/btConvexHull.* to src/LinearMath/btConvexHull.*
removed btCollisionObject::m_internalOwner, replaced it by m_internalType. This should not affect external API (it was clearly marked as internal)
2008-04-10 20:00:41 +00:00
erwin.coumans
883d3278ec + fixed btMinkowskiSumShape Sa+b(v) = Sa(v)-Sb(-v) instead of Sa(v)+Sb(v)
+ fix related btMinkowskiSumShape issue in btSubsimplexConvexCast and btGjkConvexCast
+ add hitpoint for btSubsimplexConvexCast
+ reduce maximum number of iterations in conservative advancement/CCD implementations
2008-04-03 18:35:28 +00:00
erwin.coumans
2478591e13 allow quantized AABB tree to be build and used for arbitrary arrays of AABBs, not just triangle meshes 2008-03-15 08:52:42 +00:00
erwin.coumans
fe5386a5c8 Made the move from sourceforge to googlecode (no svn sync any longer)
Fixed BulletColladaConverter load/save
Removed btTypedUserInfo
Added btHashMap
Fixed btCapsuleShape
2008-03-13 05:16:42 +00:00
ejcoumans
3d3d24afa9 refit tree needs an aabbMin/aabbMax
improved unquantization for quantized trees
reverted heightfield quantize
2008-02-28 02:55:25 +00:00
ejcoumans
f51ac89dbe add support for 16bit indices and 3-float vertices (instead of btVector3 which is 4float) in
in btTriangleMesh container and ColladaConverter.

btTriangleMesh now derives from btTriangleIndexVertexArray, so it can be used for meshes on SPU
2008-02-18 04:23:50 +00:00
ejcoumans
9aec3255ef add support for 16bit indices and 3-float vertices (instead of btVector3 which is 4float) in
in btTriangleMesh container and ColladaConverter.

compile issue with PlatformDefinitions in GDC demo.
2008-02-18 01:37:30 +00:00
ejcoumans
eeb78b8d45 free memory for btShapeHulls, keep track of it in GL_ShapeDrawer.
move btShapeHull and btConvexHull into its own library in Extras/ConvexHull (it allocates memory using mem/delete and refactoring into using btAlignedAlloc/Free takes too much time)
fix heightfield / btOptimizedBvh for quantization, so that raycast can use quantized aabb (clamp up for maxima and down for minima)

work-in-progress (update projectfiles etc)
2008-02-13 07:14:19 +00:00
johnmccutchan
65ce92885b Don't fallback to getAabbSlow in btCapsuleShape 2008-02-13 03:07:25 +00:00
ejcoumans
7ca3020133 removed some dependencies 2008-02-08 23:22:31 +00:00
ejcoumans
618263163c add support for X,Z axis aligned capsules 2008-02-08 01:11:05 +00:00
ejcoumans
f22d338959 added btCapsuleShapeX and btCapsuleShapeZ, for X and Z upaxis capsules. The default btCapsuleShape stays Y-axis, for backwards compatibility. 2008-02-07 00:34:06 +00:00
johnmccutchan
d368ef3d71 Remove name field and replace it with btTypedUserInfo field 2008-02-05 18:55:05 +00:00
ejcoumans
39ecc2ab7e error C2374: 'i' : redefinition; multiple initialization
make MSVC 6.0 build again.
This code breaks:
for (int i=0;....
for (int i=0;....
use
int i;
for (i=0;...
for (i=0;...
instead ;-)
2008-02-05 05:55:25 +00:00
johnmccutchan
8fff5c54e9 Added name fields to Collision Object and Shape.
Added name field to Typed Constraint.
Added accessor for gravity in dynamics world.
2008-01-30 01:52:07 +00:00
ejcoumans
923f1411d7 Disable a recent new optimization for ray-aabb in btOptimizedBvh, it has some issues.
///thanks Joerg/hiker for the reproduction case!
///http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=1858
2008-01-28 01:34:48 +00:00