ejcoumans
38b7f474c3
Added better support for btUniformScalingShape, by moving some data that is not shared from btConvexShape to btConvexInternalShape. This reduces the sizeof btUniformScalingShape to 16 bytes (from 64).
...
This is good when having lots of re-used shapes with different sizes.
Convex shapes will need to derive from btConvexInternalShape (which is a subclass of btConvexShape). We could have renamed btConvexShape to 'btConvexShapeInterface' (can still do that later)
2007-07-28 21:10:21 +00:00
ejcoumans
177b6f5ce2
Added btUniformScalingShape (including support for debug rendering etc)
...
This allows to re-use a convex shape, while each instance can re-scale it (with a uniform scalar factor)
2007-07-28 19:20:45 +00:00
ejcoumans
0df4cedc3e
added 'getConstraintSolver' and ability to 'reset' (set randseeds back to zero, and clear internal caches)
2007-07-27 23:54:22 +00:00
ejcoumans
a1fabc4b91
ray hitnormal is already in worldspace for convex objects, but not for trianglemeshes (ray is transformed in local space)
2007-07-27 23:52:33 +00:00
ejcoumans
91caea166b
axis is column(2)
2007-07-27 22:38:05 +00:00
ejcoumans
fddd6c5721
remove accidental 'return'
2007-07-26 05:22:48 +00:00
ejcoumans
49aa535be9
updated to make projects compiler under double precision. GIMPACT compiles/links, but doesn't work properly.
2007-07-26 03:44:21 +00:00
ejcoumans
bf967a458a
applied patches from Marten (Starbreeze) for per-rigidbody sleeping thresholds, access to constraint references.
...
Also added assert, to make sure users don't delete rigidbodies while constraints point to them.
2007-07-26 00:16:06 +00:00
ejcoumans
685138d033
include paths should not be relative starting with "../
...
It leads to problems with certain compilers, when Bullet/src is located in a long pathname.
Keep include path starting with "LinearMath/, "BulletCollision/, or "BulletDynamics/
2007-07-14 05:08:57 +00:00
ejcoumans
7eea7092de
Applied FSelUsage.patch, thanks a lot Marten Svanfeldt, Starbreeze Studios
2007-07-12 05:28:10 +00:00
ejcoumans
7cd651c266
pass collision shapes as const. fixed some issues with continuous convex cast (resulting hitnormal was not initialized properly, results not proper)
2007-07-11 02:16:39 +00:00
ejcoumans
2508cef2cf
removed prefix "btHingeConstraint::" in headerfile. Doesn't compile under all platforms. Thanks to Blender community for spotting this.
2007-07-06 20:30:55 +00:00
ejcoumans
cb101274a1
fixed issue with kinematic objects
2007-07-06 04:32:01 +00:00
ejcoumans
5c80ff1f7d
improved performance by adding constructors to btTransform/btMatrix3x3 to avoid conversions, compoundshape returns const references (instead of duplicate objects)
...
Thanks Marten Svanfeldt, Starbreeze Studios
2007-07-05 23:48:05 +00:00
ejcoumans
e4363b6e2b
added ConstraintSolver/btConeTwistConstraint.cpp to allow for ragdolls
...
improved hinge constraint: adds limits
added btAtan2Fast
quaternion helper functions
All thanks to Starbreeze Studios / Marcus Hennix, Marten Svanfeldt
2007-07-05 23:17:13 +00:00
ejcoumans
7c5164baaf
made data protected so derived classes can access it
2007-07-03 23:22:17 +00:00
ejcoumans
cdc8485db9
updated version, added 'singleObjectQuery' preliminary collision query (convex cast etc)
...
added filtering for raycast, thanks Jacky_J
const propagated through a few files
added btHeightfieldTerrainShape.cpp to cmake buildsystem
2007-07-03 05:10:20 +00:00
ejcoumans
485677513b
minor platform dependent fixes to allow compilation under Xenon
2007-06-29 22:30:05 +00:00
ejcoumans
5f8873c339
support diamondsubdivision (thanks Jay for contribution)
...
support user-defined broadphase collision filtering (thanks Marten)
make sure btSimpeDynamicsWorld doesn't use cache friendly optimization in the solver (added an assert, and updated BasicDemo)
2007-06-29 22:13:15 +00:00
ejcoumans
e33f5390dd
added patch from Marten Svanfeld to pass collision filter group/mask in addRigidbody.
2007-06-29 19:37:30 +00:00
ejcoumans
114bfad68f
made some improvements based on feedback.
...
- made getHeightFieldValue virtual (allows custom heightfield formats)
- don't use shorts, just full integers (no reason to limit the terrain size to 65536)
2007-06-28 20:40:54 +00:00
ejcoumans
e34083551c
make sure 'addConstraint' has the optional argument too
2007-06-28 19:20:17 +00:00
ejcoumans
ced94d63bf
Thanks to Mårten Svanfeldt for the contribution:
...
- optionally disable collisions between bodies that are linked with constraints
- improved debug rendering with support for compounds, spheres, capsules
2007-06-28 19:14:30 +00:00
ejcoumans
a0c5401033
bugfix, wrongly assigned value to a local variable (copy/paste bug).
...
Thanks binofet, see http://continuousphysics.com/Bullet/phpBB2/viewtopic.php?t=366
2007-06-28 00:05:14 +00:00
ejcoumans
cad28a8b35
allow for float data, and prepare for 'quad edge flip', either re-use the first triangle vertex, or second (re-use index 00 or 01)
2007-06-27 19:56:18 +00:00
ejcoumans
fa2ff30db4
replace __PPU__ by __CELLOS_LV2__, to avoid conflict with IBM Cell SDK (ppu-g++)
2007-06-27 06:55:41 +00:00
ejcoumans
3ca6d7385e
basic support for height fields. They are producing temporary triangles, similar to the plane shape.
2007-06-27 03:19:34 +00:00
ejcoumans
bba61c834c
applied some reported bugfixes, angular limit issue, limit scaled from -2.0 -> -1.0
2007-06-23 00:54:08 +00:00
ejcoumans
ca24744b9d
removed obsolete variables/code
2007-06-19 23:57:25 +00:00
ejcoumans
c095927afb
don't check twice, thanks Marten Svanfeldt
...
>>2. reserve(int) method check capacity() < _Count twice.
2007-06-19 23:45:10 +00:00
ejcoumans
769809e3a7
disabled memcpy by default, it seems to be opening a can of worms, some platforms/compilers have it defined in <memory.h>, others in <string.h> etc
...
also for placement new, include <new> rather then <memory.h>
Thanks Marten Svanfeldt for the help
2007-06-19 23:41:01 +00:00
ejcoumans
272a7dfac4
More work on multi-threaded version, fixed alignment issues in DMA.
...
BulletMultiThreaded shared implementation works now on both Win32 Threads and PS3 Cell SPU.
2007-06-16 02:06:24 +00:00
ejcoumans
ca1c42f07f
use <memory> for replacement new
2007-06-16 00:24:28 +00:00
ejcoumans
65d10d7b12
Fixes in aligned object array, to call copy constructor, and not the assignment operator, operator=
...
Also allows to use the array for classes with virtual methods.
2007-06-15 23:49:52 +00:00
ejcoumans
718b73371f
removed 'processAllTrianglesBruteForce'
...
autogenerated new visual studio projectfiles
2007-06-14 13:06:05 +00:00
ejcoumans
effb5a8b62
added brute-force triangle iteration method, to allow graphics to skip aabb traversal (useful for debugging)
2007-06-13 22:35:14 +00:00
ejcoumans
68b4f60033
fixed to potential issues, reported by marshall. Thanks!
2007-06-13 20:05:02 +00:00
ejcoumans
764087fc4f
sign-bit went wrong in case of 32-bit broadphase. Thanks DevO for reporting.
2007-06-01 01:21:44 +00:00
ejcoumans
f1e929f8a4
fixed 'getEuler' method
2007-05-30 03:07:39 +00:00
ejcoumans
eca55afe4d
some more changes related to PS3 SPU optimizations (16-byte alignment, allowing non-virtual access to data)
2007-05-25 23:27:49 +00:00
ejcoumans
c1250cd26a
Planar triangle meshes with zero extends (in any direction) could cause quantization failures (division by zero).
...
Added a positive value to quantization AABB (doesn't affect performance).
2007-05-23 20:09:46 +00:00
ejcoumans
cf2337ed7b
- Fixed a bug in btAxisSweep3 (sweep and prune) related to object removal. Only showed up when at least one btStaticPlaneShape was inserted.
...
Thanks tbp for more details on reproducing case.
- Fixed issue with full 32bit integers in btAxisSweep3 (define BP_USE_FIXEDPOINT_INT_32), it used only 65536 for quantization, it should use full integer space (0xffffffff)
- Added 'getForwardVector' and getCurrentSpeedKmHour utility functions to btRaycastVehicle
- Fixed local scaling issues (btConvexTriangleMeshShape, btBvhTriangleMeshShape, removed scaling from btMatrix3x3). Thanks Volker for reporting!
- Added second filename search, so that starting BspDemo and ConvexDecompositionDemo from within Visual Studio (without setting the starting path) still works
2007-05-20 16:21:14 +00:00
ejcoumans
3ad4316622
the relative path #include gives troubles in some cases.
...
I need to revert all those back (after Steve Bakers changes a while back).
All includes should really be relative to the 'src' folder, or wherever the developer copies all the headerfiles.
2007-05-09 19:26:31 +00:00
ejcoumans
82c8687881
- initialize m_unusedW to avoid some warnings.
...
- added angularFactor to 'cachefriendly' constraint solver
2007-04-23 10:52:38 +00:00
ejcoumans
2db8bfa3d6
Fix (needs more testing) in btRigidBody::setCenterOfMassTransform, assign m_interpolationWorldTransform = xform; instead of m_worldTransform;
...
Thanks Jay for reporting
Added braking capability to btRaycastVehicle, see Bullet/Demos/VehicleDemo/VehicleDemo.cpp
Added glutKeyboardUpFunc, for vehicle demo (keep accelerating/breaking, until key released/UP). Hope this is compatible with most GLUT implementations.
2007-04-22 15:23:20 +00:00
ejcoumans
bc3f9535ad
cleaned up, removed warning under MSVC2005 (Level 4)
...
Mostly related to alignment and unused variables
2007-04-13 01:37:21 +00:00
ejcoumans
2cf026aae3
allow incremental refitting of the quantized aabb tree
2007-04-10 21:40:43 +00:00
ejcoumans
853bafb7ae
Get the open source Bullet library more in sync with Playstation SPU version
2007-04-10 01:02:58 +00:00
ejcoumans
9546633ade
Added 'cache friendly' tree traversal format, and traversal. Array of subtrees with specified maximum size. This is useful to fit tree traversals on SPU.
2007-03-27 21:02:45 +00:00
ejcoumans
7adc0742e3
Added demo code that show recursive traversal on tree data that doesn't have explicit left/right child pointers.
...
Can also be used as starting point for tree versus tree.
2007-03-26 19:19:25 +00:00