Commit Graph

1639 Commits

Author SHA1 Message Date
erwin.coumans
dcfb23dc13 update build for btConvex2dShape functionality
use btDbvtBroadphase in HelloWorld demo, it is the recommended broadphase
2009-09-17 20:17:14 +00:00
erwin.coumans
f65e829ca0 Add support for generic 2d convex shapes, through wrapper class btConvex2dShape. See Bullet/Demos/Box2dDemo for example wrapping a btCylinderShape and 2d btConvexHullShape.
Add some extra degeneracy debugging check in btGjkPairDetector
2009-09-17 19:45:22 +00:00
erwin.coumans
3da9c832ae Initialize the world transform to identity for btCollisionObject/btRigidBody.
Some developers only initialize the world position, and not the orientation -> uninitialized data. 

We should probably add some warning in btTransform, in debug mode. Note we don't initialize btTransform/btQuaternion/btVector3/btMatrix3x3 default constructor, for performance reasons.
2009-09-16 17:56:12 +00:00
erwin.coumans
dd65ef3a8a fix some compile errors in Extras/CDTestFramework (cross/dot are no longer global functions) 2009-09-11 22:15:55 +00:00
erwin.coumans
151082597d Missed a version tag in CMakeLists.txt 2009-09-11 19:21:29 +00:00
erwin.coumans
49a0b479c6 Switch off an optimization by default, to avoid support burden: update all objects AABBs and not just the active objects.
Call world->setForceUpdateAllAabbs( false) to re-enable the optimization: it will only update active objects (skipping static geometry)
See also http://bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=4073
2009-09-11 19:18:37 +00:00
erwin.coumans
ed09140fb7 remove some warnings, thanks to Zenja http://bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=4063 2009-09-09 23:51:30 +00:00
erwin.coumans
cc5ba4608f use pre-tick callback to update motor targets in DynamicControlDemo: dynamicsWorld->setInternalTickCallback(callbackFunc,void* userPtr=MotorDemo,bool pretick=true 2009-09-09 23:23:22 +00:00
erwin.coumans
659b215a69 Override btCollisionWorld::addCollisionObject with flags more appropriate for btDynamicsWorld (StaticFilter)
Minor fixes (#ifndef SPU_COLLISION_OBJECT_WRAPPER_H block etc)
Only update 'setNumTasks' when necessary
Revert vectormath.h include (can't resolve conflicts with PS3 SDK, need additional #include path)
2009-09-09 22:49:43 +00:00
erwin.coumans
df550730da include relative full path for vectormath_aos.h, and fix minor typo in glut.h 2009-09-07 17:42:12 +00:00
erwin.coumans
52971076f5 updated Mac OSX projectfile for Bullet/Extras/AllBulletDemosOSX 2009-09-07 00:53:20 +00:00
erwin.coumans
819622fbe8 delete obsolete SpuRaycast files, attempt to get demos to compile/run under 64bit glut. 2009-09-06 23:01:49 +00:00
erwin.coumans
86518d9aed removed SpuRayCaster and SpuConstraintSolver from autogenerated msvc project files 2009-09-06 21:15:09 +00:00
erwin.coumans
3fc4482f3b update ChangeLog for Bullet 2.75 improvements 2009-09-06 21:11:01 +00:00
erwin.coumans
4e2cef2c69 removed SpuRaycaster and SpuParallelSolver, both were obsolete: slow, broken and unsupported 2009-09-06 20:58:40 +00:00
erwin.coumans
2d1777c899 Avoid collision detection/response between anchored (static) soft body cluster and a static/kinematic rigid body 2009-08-31 04:35:06 +00:00
erwin.coumans
2ef7c1a457 Fixes / improvements in soft body:
avoid blow-up due to improper mass calculation for fixed nodes (happened when using clusters)
allow to create collision clusters for each tetrahedron or triangle, when using btSoftBody::generateClusters(0)
tweak soft body demos a bit, only draw debug wireframe if necessary
2009-08-28 21:23:54 +00:00
erwin.coumans
f492899499 Added example of tetrahedral (volumetric) softbodies
Keep camera distance positive when using mouse zoom
Updated autogenerated msvc projectfiles
Added glut 64 bit support
2009-08-27 18:39:17 +00:00
erwin.coumans
f82cfc8259 dd pthread to MiniCL_VectorAdd project, for Unix 2009-08-26 19:50:35 +00:00
erwin.coumans
c6493bb049 Added specialized capsule-capsule collider. Should improve ragdoll collision performance
See also http://bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=3930
To disable it, define BT_DISABLE_CAPSULE_CAPSULE_COLLIDER in the build system
2009-08-20 21:08:38 +00:00
erwin.coumans
bbeac75d93 Added minor utility method for btHashMap, btHashString 2009-08-18 23:40:51 +00:00
erwin.coumans
500930652e move class outside of method 2009-08-14 22:14:04 +00:00
erwin.coumans
34699f6de6 + add option to set pre-tick callback, called at the beginning of each internal simulation step
+ use real-time for soft body demo (using this pre-tick callback)
+ optimize the generation of bending constraints for the special case where the distance is 2
2009-08-14 21:36:51 +00:00
erwin.coumans
e89fe1cbfa Make BenchmarkDemo a console application, without OpenGL/Glut dependency.
Fix potential division by zero when enabling convex distance utility.
Thanks to linzner http://code.google.com/p/bullet/issues/detail?id=264
2009-08-12 08:18:57 +00:00
erwin.coumans
ae3255f5e9 initialize maximum distance to zero when not using separating distance utility. 2009-08-12 01:17:12 +00:00
erwin.coumans
d7c7c0c9ef avoid one redundant motionstate synchronization
minor warning fix
2009-08-11 23:50:59 +00:00
erwin.coumans
d67aa861f2 Add support for childshape index for btCompoundShape during ContactAddedCallback,
see example in Bullet/Demos/ConvexDecompositionDemo
Removed some warnings
2009-08-11 00:30:41 +00:00
erwin.coumans
f352cca5cf updated autogenerated msvc projectfiles 2009-08-08 05:35:44 +00:00
erwin.coumans
8c07b2a8a1 fixes in build system 2009-08-08 00:41:57 +00:00
erwin.coumans
aef97d6015 Share btGjkPairDetector, btGjkEpa2, btVoronoiSimplexSolver with SPU/Multithreaded implementation (remove duplicate code)
Make btTypedConstraint and btPersistentManifold both derive from btTypedObject to make SPU-side generic constraint solver easier.

Note: all build systems need to be updated: remove SpuVoronoiSimplexSolver.cpp, SpuGjkPairDetector.cpp, SpuEpaPenetrationDepthSolver.cpp, SpuGjkEpa2.cpp
2009-08-07 08:57:56 +00:00
erwin.coumans
5d2cf447e4 Some more minor improvements for PS3 SPU version 2009-08-06 20:03:09 +00:00
erwin.coumans
709f981390 remove redundant methods
thanks ejtttje for the patch:
http://code.google.com/p/bullet/issues/detail?id=262
2009-08-06 03:48:01 +00:00
erwin.coumans
1808ec6a0e Some more minor improvements for PS3 SPU version 2009-08-05 23:25:44 +00:00
erwin.coumans
3e2529fcb5 Minor constraint refactoring, to allow SPU-side processing for PLAYSTATION 3 (added non-virtual methods)
Also comment-out some code for __SPU__ to reduce code size
Added btContactConstraint (only used on PS3 SPU right now, better to use btPersistentManifold directly for contact constraints)
Improved readblend utility library (see also usage in http://gamekit.googlecode.com with Irrlicht)

Fix for btConvexConvexAlgorithm, potential division by zero
Thanks linzner http://code.google.com/p/bullet/issues/detail?id=260
2009-08-05 22:14:46 +00:00
erwin.coumans
b16f251530 Initialize m_maxNumTasks, it is required by the spubullet-2.75 for PLAYSTATION 3. 2009-08-05 01:10:46 +00:00
erwin.coumans
1b457b45e2 Minor fixes in multi-threaded narrowphase Bullet version: allow to dynamically switch number of threads/SPUs
Disable USE_SEPDISTANCE_UTIL for now
2009-08-04 00:03:14 +00:00
erwin.coumans
3160a0555c Revert GIMPACT change (#define BULLET_TRIANGLE_COLLISION 1)after several reports that it doesn't work well
Disable SIMD/SSE when using double precision on __APPLE__, thanks Ola for the report!
http://bulletphysics.com/Bullet/phpBB3/viewtopic.php?t=3878
2009-07-27 06:28:47 +00:00
erwin.coumans
82fff60324 updated MayaPlugin Makefile.mac for Mac OSX. Usage: make -f Makefile.mac install 2009-07-22 19:08:43 +00:00
erwin.coumans
bbc072958b compile fix for OSX 10.4, see
http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=3825
2009-07-16 07:03:16 +00:00
erwin.coumans
82828745ea enable SIMD for Apple OSX Intel
compile fixes for _btGpu_computeGridSize undefined in libBulletMultiThreaded
http://code.google.com/p/bullet/issues/detail?id=246
2009-07-16 06:23:04 +00:00
erwin.coumans
40c73f327c + CMake build system fix under Windows: don't define _WINDOWS to allow Glut console demo to build properly
+ Allow user to enable useConvexConservativeDistanceUtil . Use dynamicsWorld->getDispatchInfo().m_useConvexConservativeDistanceUtil = true;
(see Demos/Benchmarks/Benchmark4 (convex objects falling down)
+ Fix for plane drawing (just wire-frame)
+ Gimpact: use collision margin of 0.07 for demo (because BULLET_TRIANGLE_COLLISION is used)
+ replace dot,cross,distance,angle,triple in btVector3 by btDot, btCross,btDistance,btAngle,btDistance to avoid naming conflicts
+ Some fixes in GJK penetration depth normal direction (broken in a previous commit)
+ fix in calculateDiffAxisAngleQuaternion to make ConvexConservativeDistanceUtil work properly
+ allow debug drawing to debug btContinuousConvexCollision
+ add comment/warning that btTriangleMesh::findOrAddVertex is an internal method, users should use addTriangle instead
2009-07-15 16:47:48 +00:00
erwin.coumans
a27b349dd0 compile fixes for Linux 2009-07-14 19:43:22 +00:00
erwin.coumans
60c107b7a7 Updated INSTALL description. This info should go also in Bullet User Manual and Online.
Thanks to ejtttje http://code.google.com/p/bullet/issues/detail?id=248

Use GJK for GImpact triangle test
See http://bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=3687

More improvements in GJK degeneracy handling (using second EPA/GJK run)
Issue/discussion here http://code.google.com/p/bullet/issues/detail?id=250

CMake improvements
Thanks to ejtttje http://code.google.com/p/bullet/issues/detail?id=247

Added basic camera/wall detection for character demo
2009-07-14 02:10:03 +00:00
erwin.coumans
c4ad354ac0 More GJK degeneracy fixes, thanks Jacob Langford for the feedback:
http://code.google.com/p/bullet/issues/detail?id=250

Added missing files for Maya Dynamica plugin
Thanks Herbert Law for the patch, and damrit and others for the report
http://code.google.com/p/bullet/issues/detail?id=231

Fix btQuaternion shortestArcQuat, thanks Stan Melax for original fix and shogun for reminder
http://bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=1989

Implemented btDiscreteDynamicsWorld::removeCollisionObject (and btSoftBodyDynamicsWorld) to avoid
crashes. Thanks Jacob Langford for bringing that up.

Minor sphere-debug drawing issue (spheres were drawn inside-out (wrong face winding)
2009-07-13 21:48:19 +00:00
erwin.coumans
d4b099236c attempts to improve degeneracies in GJK implementation 2009-07-10 21:27:04 +00:00
erwin.coumans
3538ac1162 add radius to debug sphere drawing 2009-07-10 00:26:46 +00:00
erwin.coumans
d9ad88aa7a Fix in some degenerate GJK configuration: once a degenerate GJK case is detected, without valid EPA penetration, use a second GJK run without margin.
Thanks to Jacob Langford for the report:http://code.google.com/p/bullet/issues/detail?id=250
2009-07-09 22:10:27 +00:00
erwin.coumans
dc4180f1ce + fix bug in SoftDemo: use removeRigidBody for rigid bodies, instead of removeCollisionObject
+ use default convex drawing instead of special cylinder drawing (caps are wrongly drawn)
+ allow camera translation using middle-mouse button in SoftDemo
+ add/removeCollisionObject virtual 
Thanks Ola for this suggestion
2009-07-06 04:15:02 +00:00
rponom
99f6ff7cf3 Some fixes to work with constraint angle limits close to -PI or PI 2009-06-12 01:23:47 +00:00
erwin.coumans
699ba8f5b2 forgot to update Demos/Gpu2dDemo for btMultiSphereShape change (removed 1st argument) 2009-06-11 14:32:41 +00:00