Benoit Bolsee
e912ca9331
BGE bug #17491 fixed: BGE, Dupli instance with different scale, massive slowdown.
...
The root cause of this bug is the fact that Bullet shapes
are shared between duplicated game objects. As the physics
object scale is stored in the shape, all duplicas must
have the same scale otherwise the physics representation
is incorrect.
This fix introduces a mechanism to duplicate shapes at
runtime so that Bullet shapes are not shared anymore.
The drawback is an increased memory consuption.
A reference count mechanism will be introduced in a
later revision to keep Bullet shape shared between
duplicas that have the same scale.
2008-08-21 15:19:54 +00:00
Benoit Bolsee
553694b614
BGE fix bug #17430 : BGE Collide/Touch Sensor interfearing with other unrelated sensor states. The bug was introduced in the recent logic optimization patch. It only affects collision and touch sensors. The bug is fixed by keeping track of registration count.
2008-08-05 16:23:33 +00:00
Benoit Bolsee
4ae4ecd3ce
BGE patch: Optimization of bullet adaptation layer - part 1.
...
First batch of optimizaton of the bullet adaptation layer in the BGE.
- remove circular motion state update.
- optimization of physic adaptation layer for bullet: bypass
unecessary conversion of rotation matrix to quaternion and back.
- remove double updates during object replication.
2008-07-21 12:37:27 +00:00
Benoit Bolsee
d725e5f78e
BGE bug fix (for 2.47): setParent() fix, third part: set mass to 0 when parenting. Allow loc/scale/orientation change on child object with physic controller.
2008-07-20 15:40:03 +00:00
Benoit Bolsee
31adad5b4d
Fix BGE bug: dynamic-but-not-rigid objects are added as rigid body during the game.
2008-05-01 16:00:59 +00:00
Benoit Bolsee
3cf5b1d6fb
Radar/Near sensor performance problem fixed
2008-03-01 19:17:37 +00:00
Erwin Coumans
46234f90ce
Removed old Blender/extern/bullet, and upgraded game engine to use Bullet 2.x
...
All platforms/build systems: either upgrade to use extern/bullet2, or disable the game engine until the build is fixed.
2006-11-21 00:53:40 +00:00
Erwin Coumans
6ce5d97c56
upgraded Bullet rigidbody physics to latest version 1.9
2006-08-28 06:44:29 +00:00
Erwin Coumans
ec8448b88d
bugfix/workaround for problem with hard-coded collision margins being too large.
2006-06-18 22:10:00 +00:00
Erwin Coumans
ab71e2a9b5
-added basic support for GameActuator 'load game', relative paths were broken, just load file into memory and load blend from memory.
...
-near sensor support
- python binding for PhysicsConstraints.setNumTimeSubSteps (dividing the physics timestep to tradeoff quality for performance)
2006-05-22 21:03:43 +00:00
Erwin Coumans
93c47e1071
- Added support for kinematic objects (interaction between rigidbodies), deriving linear/angular velocity from previous transform/current transform and deltatime.
...
- Made another attempt to migrate from Sumo to Bullet: import of older files automatically switch to Bullet, but you can override it, and save the file in 2.42 version. then it stays Sumo physics.
2006-05-11 00:13:42 +00:00
Erwin Coumans
f51d1ef7d6
- fixed Bullet noResponse/ghost mode
...
- added ccd option (future use, very basic and inefficient)
- some internal Bullet refactoring/improvements
2006-04-28 00:08:18 +00:00
Erwin Coumans
45d0123a59
fixed several internal Bullet rigidbody dynamics bugs:
...
- broadphase had bugs in removing objects,
- persistent manifold renamed value,
- cylinder penetration depth fixed,
- memory leak for persistent manifold
2006-04-26 03:20:28 +00:00
Erwin Coumans
971ee74c84
added support for 'Ghost' object and collision sensor (preliminary)
2006-04-17 01:33:10 +00:00
Erwin Coumans
90e5a9aa14
Reorganized Bullet physics files, added preliminary vehicle simulation files (disabled).
...
Requires some changes to projectfiles/makefiles/scons, for the added and removed files!
2006-02-21 05:36:56 +00:00
Erwin Coumans
bab1b90edc
more game engine bug-fixes, hooked up 'formfactor' as inertia tensor tweaker, friction/restitution, more scaling related fixes.
2005-12-31 21:59:56 +00:00
Erwin Coumans
9119b6e8a5
Fixed several bugs: python refcounting related and Bullet related (basic add/remove object support, bounding volume hierarchy). Added a few files, updated the Bullet scons. Vc6/7 Bullet projectfiles need to add a couple of files: 'Bullet/CollisionShapes/BvhTriangleMeshShape.cpp',
...
'Bullet/CollisionShapes/ConvexTriangleCallback.cpp',
'Bullet/CollisionShapes/EmptyShape.cpp',
'Bullet/CollisionShapes/OptimizedBvh.cpp',
'Bullet/CollisionShapes/TriangleCallback.cpp',
'Bullet/CollisionShapes/TriangleIndexVertexArray.cpp',
'Bullet/NarrowPhaseCollision/ManifoldContactAddResult.cpp'.
Sorry, no armatures fix yet.
2005-12-31 07:20:08 +00:00
Erwin Coumans
c99c7fbcb3
some more fixes in the raycast/mouse over
2005-08-17 19:52:56 +00:00
Erwin Coumans
4d7089d19b
these files missed the cvs commt yesterday, this should fix compilation problems
2005-08-13 08:05:48 +00:00
Erwin Coumans
29f06ad76e
some more work on bullet raycast
2005-08-08 17:08:42 +00:00
Erwin Coumans
b6d9fbf0db
fixed the mouse-over sensor,
...
added raycast support for bullet (no triangle-mesh support, soon)
added python methods for 'getHitObject', getRayDirection, getHitPosition and getHitNormal for mouse over sensor,
which makes it easy for a shootout.blend demo :)
2005-08-05 17:00:32 +00:00
Erwin Coumans
210ab537ce
improved deactivation, exposed more tweakable parameters to python,
...
fixed some copy/paste bug in inertia/inverse inertia.
colors in deactivation debug
2005-08-04 19:07:39 +00:00
Erwin Coumans
2cc6d565cb
moved some hardcoded constants into tweaking tresholds
...
exposed those tresholds to python (more 'expert' settings)
2005-08-03 18:22:30 +00:00
Erwin Coumans
dad6ef9045
added physics-debugging
...
didn't check every single file, so might have broken some gameengine stuff, will fix it this weekend!
2005-07-29 18:14:41 +00:00
Erwin Coumans
502c34ee49
added Bullet physics binding files
2005-07-16 10:15:31 +00:00