erwin.coumans
1cd52f3d11
Removed empty constructors for constraints, I don't recall why we added them (possibly SPU) but if we really need them we have to revert this.
...
Moved static fixed body into a static function 'getFixedBody' to avoid issues when embedding Bullet in C#/CLI managed code.
2010-02-03 23:02:33 +00:00
erwin.coumans
d58081ce37
Provide easier access to CFM and ERP (and Stop ERP/Stop CFM) for constraints in a similar way to Open Dynamics Engine
...
virtual void btTypedConstraint::setParam(int num, btScalar value, int axis = -1) = 0;
virtual btScalar btTypedConstraint::getParam(int num, int axis = -1) const = 0;
Parameter can be BT_CONSTRAINT_ERP,BT_CONSTRAINT_STOP_ERP,BT_CONSTRAINT_CFM,BT_CONSTRAINT_STOP_CFM
Axis is 0 .. 5, first 3 for linear degrees of freedom, last 3 for angular. If no axis is specified it will take the 'default' degree of freedom. For a btHingeConstraint this would be the hinge axis (5)
2010-02-03 22:16:09 +00:00
erwin.coumans
d2a55dee59
Add API to construct an optimized BVH for btBvhTriangleMeshShape,
...
Thanks to Benoit see Issue 340
http://code.google.com/p/bullet/issues/detail?id=340#c0
2010-02-03 16:16:46 +00:00
erwin.coumans
f34bb0176c
minor compile fixes for __CELLOS_LV2_
2010-02-03 02:20:09 +00:00
erwin.coumans
4140a20552
fixed some compile issue for Mac Dynamica plugin, see
...
http://code.google.com/p/bullet/issues/detail?id=221
added some missing file for autotools/Makefile.am
fix: btBulletWorldImporter::loadFileFromMemory always returned false, if it was succesful
2010-01-31 16:46:06 +00:00
erwin.coumans
c71b968110
fixes on unix (new lines and case)
2010-01-30 23:48:19 +00:00
erwin.coumans
e57f03599a
make Bullet compile on Visual Studio 6
2010-01-30 23:10:12 +00:00
erwin.coumans
788f48643b
remove all warnings on Mac OSX Snow Leopard
2010-01-30 22:31:56 +00:00
erwin.coumans
f9ad5cf587
fixes in serialization, should fix non-Windows platforms.
2010-01-30 21:31:56 +00:00
erwin.coumans
4fcea85c01
Changed options to BT_TRIANGLE_CONVEX_BACKFACE_MODE ,BT_TRIANGLE_CONCAVE_DOUBLE_SIDED and BT_TRIANGLE_CONVEX_DOUBLE_SIDED.
...
Note that double sided options are experimental, single sided is recommended, and backfacing is default
2010-01-30 10:44:16 +00:00
erwin.coumans
fbc4089e3f
add btAdjustInternalEdgeContacts options for BT_TRIANGLE_CONVEX_BACKFACE_MODE (defaults to front facing) and BT_TRIANGLE_CONCAVE_SINGLE_SIDED
2010-01-30 10:21:40 +00:00
erwin.coumans
01b66a6799
fixes in serialization (don't serialize shapes multiple times), hull shape issue,
...
fix InternalEdgeDemo compilation using GLUT
2010-01-30 06:55:39 +00:00
rponom
d5f5ddf2f1
Bullet debug draw added
...
It is off by default, see attributes of dSolverNode to turn it on
2010-01-30 04:21:12 +00:00
erwin.coumans
e311597a7b
added InternalEdgeDemo and fixes for btInternalEdgeUtility
2010-01-30 03:48:57 +00:00
erwin.coumans
37f6df2c32
added serialization support for gimpact mesh
...
improved cmake build system for updating the serialization structures
2010-01-29 02:50:34 +00:00
erwin.coumans
701bc64ab7
re-enable the GenericJointDemo for CMake
2010-01-29 00:46:59 +00:00
rponom
ee3e231be5
+ more consistent 'setLocalScaling' for the btCompoundShape. Full non-uniform scaling is not supported when child shapes have a rotation. If any child shapes have rotation, the best you can do is either uniform scaling, or 'baking' the non-uniform scaling into the child geometry (vertices of a convex hull for example)
...
+ fixed an issue with BulletWorldImporter, btBoxShape implicitShapeDimensions already includes local scaling.
2010-01-28 23:41:09 +00:00
erwin.coumans
ae0e78efd8
add support for serialization/writing DNA on big endian machines
...
fix for swapping endianness for nested array of structures
2010-01-28 10:56:38 +00:00
erwin.coumans
485d1a338e
fix btCompoundShaps serialization of child shapes
...
added ConcaveDemo to cmake
added LinearMath/btSerializer.h to btBulletCollisionCommon.h
2010-01-27 23:37:46 +00:00
erwin.coumans
7a445d70b7
fix bug in serialization buffer allocation btAlignedAlloc(16,totalSize); should be btAlignedAlloc(totalSize, 16);
...
added cmake-autogenerated MSVC 2008 projectfiles in msvc/2008
2010-01-27 22:24:07 +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
cd15b314c1
revert minor local change
2010-01-27 02:16:17 +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
e6922f2af6
revert accidental commit of btSerializer.h
2010-01-26 02:25:48 +00:00
erwin.coumans
44565d20f4
added serialization support for btCompoundShape, btCapsuleShapeX/Z, btCylinderShapeX,Z
...
make some serialization methods const
prepare for constraint serialization
2010-01-26 02:24:03 +00:00
erwin.coumans
362a0faf0f
re-add 64bit serialization structures
2010-01-25 21:59:58 +00:00
erwin.coumans
a7a6ab8835
Add BulletWorldImporter: it takes the in-memory data from BulletFileLoader and instantiates objects in a BulletDynamicsWorld.
...
Note that BulletFileLoader is has no dependencies on BulletDynamics/BulletCollision.
Also added a custom build step to copy asset (.bullet and .obj file) into the executable folder
Made a few 'char*' 'const char*' to avoid compiler warnings
2010-01-25 21:58:32 +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
5d8e6dc3f3
improved btTriangleMeshShape/btBvhTriangleMeshShape serialization
2010-01-24 16:48:14 +00:00
erwin.coumans
9d7d1c3983
more work on serialization, initial for btTriangleMeshShape/btBvhTriangleMeshShape (only for floating point vertices, integer indices) work-in-progress
2010-01-23 20:59:41 +00:00
rponom
e459145b91
Crash bug when "mesh" applied twice fixed
...
Constraints reworked - all of them could now work with one or two bodies
Modification of constraint frames and initial positions of rigid bodies
now allowed at start frame only
Plugin version is set to 2.76
2010-01-23 03:15:43 +00:00
erwin.coumans
5e85d43b0b
more Bullet serialization (uncompleted triangle mesh saving, work-in-progress)
2010-01-23 02:13:25 +00:00
erwin.coumans
5378cf4c8a
more work on Bullet serialization (added support for btConvexHullSupport)
2010-01-23 00:58:47 +00:00
erwin.coumans
0f707603f1
more work on serialization, work-in-progress
2010-01-23 00:04:58 +00:00
erwin.coumans
76eccc39fc
more work on serialization (work-in-progress)
2010-01-22 03:36:58 +00:00
erwin.coumans
26a056e629
More work on serialization and BulletFileLoader
2010-01-22 00:15:33 +00:00
erwin.coumans
fbc0d86cf6
updated binary serialization structure DNA (type/size/name info)
2010-01-21 00:23:41 +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
b010233e7b
Only use a system-wide vectormath_aos.h on CELLOS_LV2 or if USE_SYSTEM_VECTORMATH
...
(otherwise use the included version in Bullet/src/BulletMultiThreaded/vectormath
2010-01-20 22:46:56 +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
099c36a71e
Add a new flag btCollisionObject::CF_DISABLE_VISUALIZE_OBJECT to give control over what objects are drawn using the debug drawer
...
This solves Issue 238 , thanks to Linzner for the suggestion
Remove some warnings from GL_DialogDynamicsWorld.
2010-01-20 19:38:04 +00:00
erwin.coumans
ae6c59848f
fix OSX build
2010-01-20 04:52:07 +00:00
erwin.coumans
50a3c32a5f
Added preliminary binary serialization code in btCollisionWorld.cpp, with example in Bullet/Demos/BasicDemo.cpp
...
(work-in-progress, some initial working version should be ready very soon, for Bullet 2.76)
2010-01-20 01:00:39 +00:00
erwin.coumans
5d3ba1daa6
fix compile issue, and add BulletCollision/CollisionDispatch/btInternalEdgeUtility.cpp/h to CMakeLists.txt/Makefile.am
2010-01-19 20:12:45 +00:00
erwin.coumans
96d73d642d
fixes in debug drawer: always use rgba color with each component in range [0..1]
...
use sphere/box rendering of debug drawer
Thanks accodejockey for the report: See http://code.google.com/p/bullet/issues/detail?id=280
Also see http://code.google.com/p/bullet/issues/detail?id=279
2010-01-19 19:38:18 +00:00
erwin.coumans
c6df06c6a1
Added btDbvtBroadphase::setAabbForceUpdate to always update the aabb (skip optimizations), to address this issue (helps with occlusion culling)
...
///http://code.google.com/p/bullet/issues/detail?id=223
Also added a few missing 'virtual' keywords (the functions were virtual already because of the base class)
2010-01-19 19:06:47 +00:00
erwin.coumans
b57314c590
Added write access to implicitShapeDimensions, this allows to change the dimensions of a box, capsule etc.
...
See also request here: http://code.google.com/p/bullet/issues/detail?id=325
Also added a warning. This warning also applies to all methods that change the collision shape:
"changing a collision shape while the body is in the world is not recommended,
it is best to remove the body from the world, then make the change, and re-add it
alternatively flush the contact points, see documentation for 'cleanProxyFromPairs'"
2010-01-19 06:34:39 +00:00
erwin.coumans
67133c403d
remove the LinearMath/ prefix for includes within the LinearMath directory
...
Thenks tasioga for the patch, see http://code.google.com/p/bullet/issues/detail?id=333
2010-01-19 06:13:44 +00:00
erwin.coumans
4280f54ccf
Get rid of some warnings, mainly unused parameters/variables.
...
Thanks sparkprime for the patch, see http://code.google.com/p/bullet/issues/detail?id=330
2010-01-19 06:10:27 +00:00
erwin.coumans
086f80b206
Provide the index of the btCompoundShape child hit during a rayTest, available as "LocalShapeInfo.m_triangleIndex"
...
Thanks sparkprime for the patch. See http://code.google.com/p/bullet/issues/detail?id=332 and
http://code.google.com/p/bullet/issues/detail?id=214
2010-01-19 05:50:14 +00:00