rponom
b409abac09
Deltas of linear and angular velocities applied to rigid bodies now are kept between simulation steps.
...
Read-only access functions added to btRigidBody to get these values
Several OpenCL functions are implemented for MiniCL
2010-03-17 19:06:59 +00:00
erwin.coumans
81f04a4d48
fix: some file didn't have the svn:eol-style native yet
2010-03-06 15:23:36 +00:00
erwin.coumans
40dc18f604
remove Extras/obsolete/quickstep
...
improve serialization based on feedback: make it easier to serialize a single object, or single shape, or single bvh.
Modified Bullet/Demos/ConcaveDemo to use btSerializer to serialize the btOptimizedBvh (or optionally the trimesh+bvh)
You can also serialize trimesh without BVH, use:
serializer->setSerializationFlags(BT_SERIALIZE_NO_BVH);// or BT_SERIALIZE_NO_TRIANGLEINFOMAP
2010-02-25 20:12:40 +00:00
erwin.coumans
79ef84f344
fix Issue 345 with kinematic objects
...
Thanks to nanocell http://code.google.com/p/bullet/issues/detail?id=345
2010-02-23 02:33:11 +00:00
erwin.coumans
45e7c7f564
Add missing files to XCode project
...
Add option to disable SPU collision processing, and add assert to detect unsupported recursive compounds on SPU.
2010-02-17 02:34:26 +00:00
erwin.coumans
d4c3633405
Get rid of btSolverBody and use btRigidBody directly. btSolverBody didn't improve performance after all, due to random-access
...
Tweak the BenchmarkDemo a bit:
1) disable deactivation in graphical mode
2) add some settings that increase performance in the BenchmarkDemo2 (1000 stack) from 35ms to 15ms on this quad core (at the cost of a bit of quality)
2010-02-11 20:30:56 +00:00
erwin.coumans
7782952d6b
Add a minimum solver 'batch' size to avoid solving many small (independent) islands separately
...
Default size is 128 . Disable feature by using dynamicsWorld->getSolverInfo().m_minimumSolverBatchSize = 1;
2010-02-06 22:21:44 +00:00
rponom
af1dafc659
Fix for the slider constraint (case when useLinearReferenceFrameA == false)
2010-02-04 01:21:45 +00:00
erwin.coumans
58c5630d7f
Add new demos to cmake: SerializeDemo and InternalEdgeDemo
...
Fix in btShapeHull for previous commit
Add support to serialize name for objects
Updated serialization structures.
2010-02-04 01:07:07 +00:00
erwin.coumans
87b313d715
Add flags to btRigidBody to disable world gravity.
...
Use setFlags/getFlags with BT_DISABLE_WORLD_GRAVITY
See http://code.google.com/p/bullet/issues/detail?id=324
2010-02-03 23:58:48 +00:00
erwin.coumans
219517db2d
move static globals inside static member functions, to avoid hassle with C#/CLI/C++ managed code, compile error C3820
2010-02-03 23:27:22 +00:00
erwin.coumans
788f48643b
remove all warnings on Mac OSX Snow Leopard
2010-01-30 22:31:56 +00:00
erwin.coumans
725411a1f3
added a warning to all serialization structures:
...
///do not change those serialization structures, it requires an updated sBulletDNAstr/sBulletDNAstr64
2010-01-27 02:41:38 +00:00
erwin.coumans
00f58e5a91
added basic serialization for several constraints including btPoint2PointConstraint, btHingeConstraint, btSliderConstraint, btConeTwistConstraint, btGeneric6DofConstraint
...
(no motor support or advanced settings yet)
added btStaticPlaneShape serialization
Added toggle in cmake for BenchmarksDemo to enable/disable graphics rendering
2010-01-27 02:13:56 +00:00
erwin.coumans
e7ff71d99b
add support for double precision and 64bit serialization (and compatibility between all versions)
...
fix some issue in serialization of nested array data
add some tesing files
2010-01-25 19:42:51 +00:00
erwin.coumans
0f707603f1
more work on serialization, work-in-progress
2010-01-23 00:04:58 +00:00
erwin.coumans
6af9f9434f
worked a bit more on the serialization, and added a preliminary SerializeDemo.
2010-01-21 00:17:18 +00:00
erwin.coumans
6b89f028bf
add newlines to files, thanks to tasioga for the patch
...
http://code.google.com/p/bullet/issues/detail?id=334
2010-01-20 21:33:35 +00:00
erwin.coumans
fcd2b93a22
fix in box-box contact generation: choose better contact point location (along contact normal) when objects are swapped.
...
move debugDrawWorld to btCollisionWorld.
improved CollisionInterfaceDemo, show how to perform a closest point query for objects that are not in the collision world.
removed a bit of garbage from the debug drawer
2009-12-18 00:54:52 +00:00
erwin.coumans
0c85c74bae
removed stack allocator (was unnecessary/unused)
...
Thanks to Brecht for the report: http://code.google.com/p/bullet/issues/detail?id=303
2009-12-13 20:48:52 +00:00
erwin.coumans
91f1e8117b
Add serialization for btRigidBody (all work-in-progress)
2009-12-09 14:11:13 +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
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
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
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
a27b349dd0
compile fixes for Linux
2009-07-14 19:43:22 +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
f552a1dbbf
Remove first argument from btMultiSphereShape, calculate local inertia approximation from aabb.
...
If user wants more accurate inertia tensor for multi-sphere shape, use btCompoundShape instead
(amd btCompoundShape::calculatePrincipalAxisTransform)
Thanks rcharlton for bringing this up.
Erwin
2009-06-11 13:51:48 +00:00
erwin.coumans
6c80353556
Minor fix in friction: calculate second friction direction based on un-scaling first friction direction (issue if it was scaled to zero)
...
Force activation state of static objects to be ISLAND_SLEEPING, once they are added to the world
Add backwards compatibility option btDiscreteDynamicsWorld::setSynchronizeAllMotionStates, just in case only updating active objects broke someones code
Don't disable 3D box-box in box2ddemo
2009-06-11 12:22:41 +00:00
erwin.coumans
3e5fc86a6c
Iterate only over non-static rigid bodies, instead of all collision objects
...
http://bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=18&t=3625
http://code.google.com/p/bullet/issues/detail?id=128
Attempt to fix issue in mesh striding, multiple-mesh-parts were broken.
2009-06-11 01:25:10 +00:00
erwin.coumans
badf723257
Replace all hardcoded 1e30(f) by BT_LARGE_FLOAT, defined in btScalar.h as 1e18(f) so that its square still fits in FLT_MAX
...
Thanks to Ole K. for reporting! http://code.google.com/p/bullet/issues/detail?id=206
2009-05-23 02:15:54 +00:00
rponom
c680791ce9
3 new constraints added : btGeneric6DofSpringConstraint, btUniversalConstraint, btHinge2Constraint
...
Motors for btConeTwistConstraint added (for obsolete solver only)
appConstraintDemo changed to test new constraints
Several coding-style fixes
2009-05-21 22:10:13 +00:00
erwin.coumans
33029ad996
updated demos -> ALT + mouse uses Maya-style controls, replaced BMF_Fonts by GLDebugFont
...
fix debug drawing of btMultiSphereShape
added box2d demo
added experimental gpu 2d demo
2009-05-09 19:27:14 +00:00
erwin.coumans
7ae29bd13e
add plSetOpenGLMatrix to Bullet-C-API
2009-03-10 00:13:18 +00:00
erwin.coumans
700db838b1
Add 1D and 2D support for Bullet: using rigidbody->angularFactor(const btVector3& factor) and body->setLinearFactor(const btVector3& linearFactor);
...
For example, to only allow linear motion in the X-Z plane, and only rotation around Y axis use:
body->setLinearFactor(btVector3(1,0,1));
body->setAngularFactor(btVector3(0,1,0));
Fix build issues with CodeBlocks, when generating projectfiles using CMake 2.6:
${OPENGL_glU_LIBRARY} should be ${OPENGL_glu_LIBRARY}
Fix build issue with CodeBlocks, comment out xmlfree in Extras/COLLADA_DOM/src/modules/LIBXMLPlugin/daeLIBXMLPlugin.cpp (will leak memory)
2009-03-08 04:14:17 +00:00
erwin.coumans
0905002e3f
make sure to be backwards compatible with spubullet 2.73 sp1 (PLAYSTATION 3 version)
2009-03-03 20:30:31 +00:00
erwin.coumans
90f96aec27
Introduced btActionInterface. This makes it easier to extend user-defined actions, such as vehicles and characters.
...
btRaycastVehicle and btKinematicCharacterController are derived from btActionInterface now.
Some cosmetic cleanup: changed sourceforce/sf.net url to bulletphysics.com.
2009-03-03 16:18:23 +00:00
erwin.coumans
3548c01985
add btCollisionWorld::updateSingleAabb see http://bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=3262
...
Fix memory leak, see http://bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=3266
Change contact breaking threshold
Add 'needsResponse' test for CcdMotionClamping, see http://code.google.com/p/bullet/issues/detail?id=179
Updated user manual (needs lots more work)
Added autoexp.dat, enabled Microsoft Visual Studio debug visualization for btAlignedObjectArray and btVector3.
2009-02-27 02:33:48 +00:00
erwin.coumans
8acadeb711
minor tweaks to demos: enable constraint debug drawing in AllBulletDemos, default constraint debugging size set to 0.3,
...
set svn:eol-style native for folder files
http://code.google.com/p/bullet/issues/detail?id=191
2009-02-18 22:52:03 +00:00
erwin.coumans
d886c06fa5
Add the option for the btSimulationIslandManager to avoid splitting islands (for constraint solving)
...
Move the convertContact inside constraint solver to its own method
2009-02-13 02:34:46 +00:00
erwin.coumans
7a2a98078a
Fixes for broadphase/paircache determinism.
...
Revert definition for ATTRIBUTE_ALIGNED16, and try to force sizeof(btSolverConstraint) by using unions with btScalar, for non-btScalar data types.
Use btAssert and not assert.
Don't access btAlignedObjectArray elements, for zero sets
2009-02-10 23:50:21 +00:00
rponom
2766d19d65
Bug in 6DOF constraint fixed
...
Twist is now locked when twistSpan == 0 for btConeTwistConstraint
Hinge axis for rigidBodyB is no longer flipped
2009-02-06 00:04:32 +00:00
rponom
2f23237185
Improved and more stable btConeTwistConstraint (thanks to Edy Boxerman)
2009-02-04 02:11:45 +00:00
erwin.coumans
0754876d77
Calculate multiple contact points (for convex-convex and convex-plane) when less then 3 points exist in the persistent manifold.
...
Uses the normal pertubation method, described by Gino van den Bergen: http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=4&t=288&p=888#p888
Made btRigidBody::getInvInertiaDiagLocal const, thanks to abhikp (http://code.google.com/p/bullet/issues/detail?id=183 )
2009-02-03 00:54:01 +00:00
erwin.coumans
d1263be23f
Fix compile error: invalid initialization of non-const reference of type ‘btVector3&’ from a temporary of type ‘btVector3’
2009-01-16 05:21:54 +00:00
rponom
e7ca0e6a9c
Bug in Generic 6DOF joint fixed
...
Debug visualization of joint constraints was added
2009-01-16 03:04:07 +00:00
john.mccutchan
a8ec916af0
Added Height Field Fluid Demo to Bullet. All code stored in the Demos/HeightFieldFluidDemo directory for now.
...
Please see HfFluidDemo.cpp for examples of how to use the height field fluid along with buoyant collision shapes.
The implementation is still lacking in my ways:
1) Need to complete more collision algorithms for buoyant collision shapes
2) Support compound buoyant shapes
3) The buoyancy model isn't that great
4) Fluid volume can be lost over time
2009-01-08 22:53:23 +00:00
rponom
1991bf3013
Added getInfo1()/ getInfo2() code for joints to support the new SIMD constraint solver
2008-12-25 02:13:46 +00:00
erwin.coumans
8ed2db9b42
finally applied this 'getGravity' patch, so getGravity matches setGravity.
...
Thanks to Evgeny for the report/patch:
http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=1852
http://code.google.com/p/bullet/issues/detail?id=23
2008-12-09 02:16:05 +00:00