erwin.coumans
d419f79770
fixes to make MultiThreadedDemo work in 64bit, ParallelConstraintSolver won't work yet, only the parallel collision dispatcher
2011-04-03 19:30:26 +00:00
erwin.coumans
1fb2fa3db9
put an #ifdef in PosixThreadSupport in the right location
2011-04-02 20:13:50 +00:00
erwin.coumans
b16b61d9d6
disable constraints when they exceed a breaking threshold, control it with new methods in btTypedConstraint: get/setBreakingImpulseThreshold and get/setEnabled
...
Disabled constraints are not removed from the world and they use negligible CPU cycles
2011-04-02 19:01:23 +00:00
erwin.coumans
d198451909
clear the applied impulse for constraints (no warmstarting)
...
simplify logic, see Issue 499
2011-04-02 00:44:15 +00:00
erwin.coumans
852fa3ba30
add the BT_ prefix for all #ifdef guards, to avoid conflicts with developers own header defines.
...
Fixes Issue 497
//license header
#ifndef BT_RIGIDBODY_H
#define BT_RIGIDBODY_H
class btRigidBody
{
};
#endif //BT_RIGIDBODY_H
2011-04-01 17:14:52 +00:00
erwin.coumans
b1f21a7e6a
Add better support for btCollisionWorld::convexSweepTest for btStaticPlaneShape, now using the btContinuousConvexCollision directly.
...
Bugfix in btKinematicCharacterController, using an uninitialized variable
2011-04-01 16:33:55 +00:00
erwin.coumans
08a93b28f0
re-introduce the radius/epsilon removed in a previous commit, it is necessary for termination.
2011-03-31 21:54:26 +00:00
erwin.coumans
5cee553a96
convexSweepTest: don't report hits if 'needsContactResponse' reports false.
...
Should fixes Issue 197
2011-03-31 21:20:52 +00:00
erwin.coumans
0bef2e7363
Fixes in btContinuousConvexCollision, should fix Issue 347
...
Continuous sweeps do not detect hits unless body0 and body1 penetrate more than allowedCcdPenetration.
This is to allow sliding objects (characters) where otherwise any contact would result in TOI = 0.
If objects penetrate deeper than allowedCcdPenetration at the start of the sweep, a TOI=0 is reported, unless the motion will separate the objects.
Secondly, a reportFailure method is added to CastResults, to handle failures gracefully (in case max iterations of conservative advancement is reached etc)
2011-03-31 21:14:35 +00:00
erwin.coumans
88b19eb023
fixes in PosixThreadSupport to enable ThreadingDemo and MultiThreadingDemo to run properly.
...
fix autotools build (added missing files)
2011-03-30 19:01:29 +00:00
erwin.coumans
2a856f8c32
add support for clipFaceAgainstHull, so we can clip convex polyhedra against triangles (without connectivity information)
...
in addition to the existing clipHullAgainstHull
Fix for debug drawing of contact points
comment-out some debug drawing code for triangle meshes
2011-03-29 21:58:15 +00:00
erwin.coumans
8847b21eb7
fix for gcc/ubuntu
2011-03-29 09:12:35 +00:00
erwin.coumans
784e7fdb39
Added support for separating axis test for polyhedral shapes
...
Added initial support for polyhedral contact clipping.
This clipping takes a separating normal, that can be computed using either SAT or GJK/EPA.
To enable clipping, use btPolyhedralConvexShape::initializePolyhedralFeatures(); (needs to be enabled for both convex shapes)
No concave trimesh support for SAT/clipping yet. To enable SAT, see the toggle in btConvexConvexAlgorithm.
Fixes in contact normal in btGjkPairDetector. Hopefully this doesn't cause any regression (we need unit tests!)
2011-03-29 08:52:18 +00:00
erwin.coumans
231a6ac718
remove default constructors, they cause compile errors under Fedora (in Blender)
2011-03-22 16:29:55 +00:00
erwin.coumans
f44cb95b2a
Added improved convex hull computation utility based on Preparata and Hong
...
Thanks to Ole Kniemeyer, MAXON, See also http://code.google.com/p/bullet/issues/detail?id=275
The ConvexHullDistanceDemo uses it to visualize the convex hull of a point cloud.
2011-03-22 00:53:17 +00:00
erwin.coumans
f17fa297d5
wrapped up first version of the FractureDemo
...
move 'split impulse' / position solver before velocity solver, so that applied impulse is available for fracture
add btSliderConstraint::getAngularPos see http://code.google.com/p/bullet/issues/detail?id=489
2011-03-18 00:20:52 +00:00
erwin.coumans
8995ad440c
fix a few more warnings
2011-03-15 22:51:00 +00:00
erwin.coumans
334cc85a1f
fix some warnings
2011-03-15 22:48:36 +00:00
erwin.coumans
1a222f642a
Stop using wavefront/warp synchronization inside OpenCL/DirectCompute, it is not future proof.
...
Similar to this commit for DX11: http://code.google.com/p/bullet/source/detail?spec=svn2343&r=2330
See also http://forum.beyond3d.com/archive/index.php/t-55751.html
2011-03-15 22:41:55 +00:00
erwin.coumans
21162f77e3
fixes to make the OpenCL cloth demo run on Apple/GPU
2011-03-15 22:24:27 +00:00
erwin.coumans
3615f6d415
fix for vehicle rollInfluence, see also discussion here:
...
http://code.google.com/p/bullet/issues/detail?id=468
2011-03-15 20:56:29 +00:00
erwin.coumans
6a2a72d987
Fix Apple Snow Leopard build
...
remove 'ComputeBounds', it isn't used and OpenCL compilation breaks Apple build
2011-03-15 20:30:23 +00:00
erwin.coumans
25b4d8da0b
fix path to PE include file
2011-03-15 17:38:03 +00:00
erwin.coumans
830796ddce
apply changes from Blender/extern/bullet2
2011-03-13 16:21:42 +00:00
erwin.coumans
7c3db274c2
add support for btScaledBvhTriangleMeshShape serialization (export and import through btBulletWorldImporter)
2011-03-12 20:25:03 +00:00
erwin.coumans
bcb08a93f8
update serialization structures
2011-03-12 04:39:24 +00:00
erwin.coumans
2b5e16de4d
rename solveCollisionsAndUpdateVelocities.cl to SolveCollisionsAndUpdateVelocities
...
solveCollisionsAndUpdateVelocitiesSIMDBatched to SolveCollisionsAndUpdateVelocitiesSIMDBatched
2011-03-11 20:26:59 +00:00
erwin.coumans
f2f20da204
rename solveCollisionsAndUpdateVelocities.cl to SolveCollisionsAndUpdateVelocities
...
solveCollisionsAndUpdateVelocitiesSIMDBatched to SolveCollisionsAndUpdateVelocitiesSIMDBatched
2011-03-11 20:26:05 +00:00
erwin.coumans
4f562399c2
Fix in the hlsl file, to allow other wavefront sizes to work correctly, thanks Ronen for the fix.
...
Fix in btDX11SIMDAwareSoftBodySolver::optimize, the interface changed
2011-03-11 01:30:46 +00:00
erwin.coumans
bf90952c12
Fix in aabb computation for a btUniformScalingShape
...
Thanks to Flix, see http://bulletphysics.org/Bullet/phpBB3/viewtopic.php?f=9&t=6439
2011-03-11 00:05:07 +00:00
erwin.coumans
7a9c349a8c
enable predictive contact constraints, see BasicDemo
2011-03-05 03:01:44 +00:00
erwin.coumans
fd4ae96697
Performance optimization for btCompoundShape::setLocalScaling
...
Thanks to Mirza, See Issue 487
backward compatibility fix for recent improvement in btRaycastVehicle 'rollinfluence'
Thanks to Mihail, See Issue 468
2011-03-04 20:16:50 +00:00
erwin.coumans
58af9d7569
void->int patch (64bit issue)
...
THanks to core13/Nan, See Issue 25
2011-02-28 17:24:19 +00:00
erwin.coumans
b7211240fc
more compatibility fixes for Physics Effects 2.x/vectormath.
2011-02-28 07:27:39 +00:00
erwin.coumans
e621c880d6
avoid naming conflicts with vectormath/sse version
2011-02-28 06:54:08 +00:00
erwin.coumans
40c4536843
added a few missing methods in vectormath/sse/vec_aos.h
2011-02-28 06:20:44 +00:00
erwin.coumans
8cb14e178e
added missing GPU cloth simulation files and DX11/OpenCL kernels
...
Thanks to Cameron Hart for the report, see Issue 486
2011-02-28 05:29:54 +00:00
erwin.coumans
d52f58edd8
Synchronize changes from branches/GpuClothAMD to trunk
...
Main improvements are: GPU cloth collision detection against a capsule shape
,OpenCL-OpenGL interoperability (keeping data buffers on GPU), and bug fixes
Thanks to Lee Howes
2011-02-27 09:07:07 +00:00
erwin.coumans
ec1bd45f4f
move some of the debug drawing from btCollisionWorld into btIDebugDraw.h,
...
this allows the developer to create better looking debug primitives (sphere, capsule, cylinder, cone and plane)
2011-02-27 06:33:30 +00:00
erwin.coumans
d2502f80e3
always use USE_SSE3_LDDQU on Windows+MSVC, and also on GCC when __SSE3__ is defined
2011-02-27 06:20:35 +00:00
erwin.coumans
cb7f4a9728
vectormath requires SSE2, but a single instruction required SSE3, added an #ifdef
...
so it compiles on gcc, using both -msse2 and -msse3
2011-02-27 06:13:11 +00:00
erwin.coumans
c956acbb87
fixes in vectormath, sse, when compiling on GCC
2011-02-27 06:02:22 +00:00
erwin.coumans
d3de688ddb
fixes in src/sse/vectormath to make it compatible with non-MSVC compilers
...
Thanks to Tjapter (http://www.bulletphysics.org/Bullet/phpBB3/viewtopic.php?f=9&t=5091 )
and Xavier (Issue 383) for the suggestions.
2011-02-27 05:44:47 +00:00
erwin.coumans
18371e7876
Fix in user collision filtering for btCollisionWorld::rayTestSingle: it was not properly overridden.
...
Thanks Paul Dubois, See Issue 397
2011-02-27 03:52:33 +00:00
erwin.coumans
2049fb2cfa
don't initialize damping twice, it is confusing.
...
See Issue 472, thanks Daniel.
2011-02-27 03:39:31 +00:00
erwin.coumans
4e8596eef5
Added some helper methods for constraints and btMatrix3x3,
...
Thanks to francois, See Issue 466
Prevent crash in SoftBodyDemo, when picking constraints and demo-mode switches to next demo.
2011-02-27 03:28:53 +00:00
erwin.coumans
e5b5126876
Enable rayTest btDbvt (dynamic aabb-tree) acceleration for btCompoundShape
...
Thanks to NaN/core13, see Issue 25
2011-02-26 22:19:00 +00:00
erwin.coumans
3f74c62ca4
new getLow/getHigh methods aren't inline, thanks harkon for report and fix, see Issue 484
2011-02-22 01:36:50 +00:00
erwin.coumans
f19995aeab
improvement for btHingeConstraint to deal with large constraint limits, see Issue 479
...
Thanks promyclon for the report and patch, and Roman Ponomarev for testing.
2011-02-19 20:02:19 +00:00
erwin.coumans
48e89d44dc
Applied patch from Blender, see https://svn.blender.org/svnroot/bf-blender/trunk/blender/extern/bullet2/uninitialized_stack_vec.patch
...
Thanks to Campbell for reporting this
2011-02-10 21:57:04 +00:00