nicolaichuk
a359262678
remove redefine warning_message
2017-03-29 18:21:08 +03:00
nicolaichuk
f30464ebcb
Revert "add compare operators in btAABB"
...
This reverts commit 18f17be47d
.
2017-03-29 18:20:36 +03:00
nicolaichuk
ae07ce2ea7
* add BT_USE_INVERSE_DYNAMICS_WITH_BULLET2
2017-03-29 17:11:26 +03:00
Erwin Coumans
7503418c72
Split Bullet/src/LinearMath/btSerializer.cpp into btSerializer64.cpp to make it easier to rebuild serialization structure.
...
Add several MSVC optimization flags to cmake.
Bump up VERSION because serialization format changed
Expose btScalar& jointMaxForce, btScalar& jointMaxVelocity to 'getJointInfo2' API, add backwards compatibility to examples\Importers\ImportURDFDemo\URDFImporterInterface::getJointInfo.
pybullet: expose 4 more fields to getJointInfo: jointLowerLimit/jointUpperLimit/jointMaxForce/jointMaxVelocity
fix performance issue in CMD_ACTUAL_STATE_UPDATE_COMPLETED
2017-03-26 13:06:46 -07:00
erwincoumans
f27eb19633
revert m_linearDamping to previous (0.04f)
...
it broke many tests with empirical check values
2017-03-23 19:59:53 -07:00
Erwin Coumans
ee0e3ba271
Remove RobotLogging from CMakeLists.txt
...
Avoid crashing if threadIndex exceeds BT_QUICKPROF_MAX_THREAD_COUNT (64)
2017-03-23 18:00:00 -07:00
Erwin Coumans
21d1827c9f
revert previous cmake copy->symlink (doesn't work on Windows)
...
fix timing issues at small timestep, disable default linear damping for btMultiBody
2017-03-23 17:30:59 -07:00
nicolaichuk
34228bb355
Merge branch 'Branch_2.86.1'
2017-03-23 17:48:23 +03:00
nicolaichuk
f68f821c89
rename Sructs to Structs
2017-03-23 17:47:44 +03:00
nicolaichuk
6063027181
fix "warning '<': signed/unsigned mismatch"
2017-03-23 15:24:27 +03:00
nicolaichuk
5144949ed8
add BT_USE_INVERSE_DYNAMICS_WITH_BULLET2
2017-03-23 15:17:29 +03:00
nicolaichuk
71e411c2ca
fix warning "This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library"
2017-03-23 14:38:45 +03:00
nicolaichuk
5527e36139
Merge remote-tracking branch 'remotes/bulletphysics/master'
...
# Conflicts:
# src/BulletCollision/CollisionDispatch/btCollisionWorldImporter.h
2017-03-23 14:28:49 +03:00
nicolaichuk
8e1b146568
Merge branch 'Branch_2.86.1'
2017-03-23 14:24:32 +03:00
nicolaichuk
6decb7ad1a
fix define call
2017-03-23 14:23:13 +03:00
nicolaichuk
703e66727c
irr_simd_memcpy to gim_simd_memcpy
2017-03-23 14:22:18 +03:00
nicolaichuk
18f17be47d
add compare operators in btAABB
2017-03-23 14:21:49 +03:00
nicolaichuk
bbf54cb05c
remove inline in function definition
2017-03-23 14:20:58 +03:00
nicolaichuk
233dd51e02
update CMakeLists.txt
2017-03-23 14:19:13 +03:00
nicolaichuk
d26952acac
add additional callback
2017-03-23 14:18:50 +03:00
nicolaichuk
1897939ec7
remove unimplemented method
2017-03-23 14:17:57 +03:00
nicolaichuk
3bf2f107b2
add default constructor
2017-03-23 14:17:13 +03:00
nicolaichuk
db065b8af8
fix redefinition
2017-03-23 14:15:51 +03:00
nicolaichuk
74b1044a05
move constructor for abstract class in protected
2017-03-23 14:14:14 +03:00
nicolaichuk
9360f1dca2
"btGImpactQuantizedBvh.h" divided into two files "btGImpactQuantizedBvh.h" and "btGImpactQuantizedBvhSructs.h"
2017-03-23 14:11:55 +03:00
nicolaichuk
3472a61216
"btGImpactBvh.h" divided into two files "btGImpactBvh.h" and "btGImpactBvhSructs.h"
2017-03-23 14:11:02 +03:00
nicolaichuk
b859ad7e4f
"btContactProcessing.h" divided into two files "btContactProcessing.h" and "btContactProcessingSructs.h"
2017-03-23 14:10:17 +03:00
nicolaichuk
c7834e8e25
"btAxisSweep3.h" divided into two files "btAxisSweep3.h" and "btAxisSweep3Internal.h"
2017-03-23 14:08:54 +03:00
Erwin Coumans
61b28621ea
minor fix in friction anchors for btMultiBody
2017-03-21 09:24:00 -07:00
Erwin Coumans
0c874aa43a
fix issue introduced in previous commit, related to
...
btMultiBodyConstraintSolver friction/penetration handling
2017-03-20 19:38:59 -07:00
Erwin Coumans
0b017b0f53
fix issue with btMultiBody friction in combination with soft contacts (friction should not re-use normal contact cfm/erp)
...
implement friction anchors, position friction correction, disabled by default. Use colObj->setCollisionFlag(flag | CF_HAS_FRICTION_ANCHOR); See test/RobotClientAPI/SlopeFrictionMain.cpp. In URDF or SDF, add <friction_anchor/> in <contact> section of <link> to enable.
PhysicsServer: properly restore old activation state after releasing picked object
btMultiBodyConstraintSolver: disable flip/flop of contact/friction constraint solving by default (it breaks some internal flaky unit tests)
2017-03-20 10:58:07 -07:00
erwincoumans
a89d3cfb95
Merge pull request #1019 from erikogenvik/kinematic_controller_initialization
...
Kinematic controller initialization
2017-03-16 10:54:41 -07:00
Erwin Coumans
b7b46b12d3
update RobotSimulator/MinitaurSetup to use data/quadruped/minitaur.urdf
...
add b3RobotSimulatorClientAPI::getBaseVelocity and resetBaseVelocity
add b3Quaternion::getEulerZYX
2017-03-15 17:09:17 -07:00
Erwin Coumans
4db6fa9e29
update minitaur.py to use minitaur.urdf (instead of quadruped.urdf), also sort the legs in the same order as real hardware
...
added test urdf files for minitaur with all fixed joints, or fixed knees.
added some stiffness/damping to minitaur legs (testing)
tiny_obj_loader, don't crash on invalid texture coordinates
btMultiBodyConstraintSolver: sweep back and forward to reduce asymmetry
2017-03-15 15:38:50 -07:00
Erik Ogenvik
4ee09c264c
Avoid using unitialized values.
...
m_gravity was used before it was initialized. Simplest way to avoid
it is to call any method first after all values are initialized.
2017-03-14 22:10:15 +01:00
Erwin Coumans
bbefc8fe7e
Apply temporary stack-memory optimization, thanks to Jim Tillander
...
(old pull request 316 https://github.com/bulletphysics/bullet3/pull/316 )
You can disable this in the build system, by adding preprocessor define 'BT_DISABLE_STACK_TEMP_MEMORY'
2017-03-13 22:27:37 -07:00
erwincoumans
11975ec60b
Merge pull request #259 from AlexanderPolyakov/master
...
Fix for use of uninitialized variables.
2017-03-13 21:57:03 -07:00
erwincoumans
ef9afd39f7
Merge pull request #996 from iSLC/master
...
Adjust thread-local local static variable syntax for MinGW/GCC.
2017-03-13 21:52:06 -07:00
erwincoumans
cbd046e87f
Merge pull request #1012 from DaveeFTW/winarm-fix
...
fix using SSE on non x86 targets
2017-03-13 21:50:55 -07:00
erwincoumans
41d7ee4f89
Merge pull request #1009 from cprogrammer1994/fix-compile-warnings
...
Fix some compiler warnings
2017-03-13 21:49:28 -07:00
David Morgan
6e35a9ee64
fix using SSE on non x86 targets
2017-03-13 19:14:10 +00:00
Erwin Coumans
bdaadf57e0
apply _clang-format to Bullet/src/LinearMath/btScalar.h, disable around preprocessor defines
...
(issue with clang-format lacking preprocessor indentation support, see
https://bugs.llvm.org//show_bug.cgi?id=17362
and possibly apply this patch:
https://github.com/mkurdej/clang/tree/indent-pp-directives
)
2017-03-13 11:17:42 -07:00
Szabolcs Dombi
839086ac84
fix type conversion warnings
2017-03-13 18:30:44 +01:00
Szabolcs Dombi
3052477c67
cast vertex data (btScalar) to float
2017-03-13 18:27:57 +01:00
Szabolcs Dombi
41c5a2e972
sinf -> btSin and acosf -> btAcos
2017-03-13 18:26:36 +01:00
Szabolcs Dombi
953bc0d3e7
float to btScalar
2017-03-13 18:22:36 +01:00
erwincoumans
644e510c83
Fix Issue 997
2017-03-08 12:38:27 -08:00
Sandu Liviu Catalin
bbb7e3c5f5
Adjust thread-local local static variable syntax for MinGW/GCC.
2017-03-08 00:46:39 +02:00
erwincoumans
18fb738f80
Merge pull request #992 from taylor001/dev
...
Fix warning when compiling with -Dundef on MinGW
2017-03-07 07:37:39 -08:00
Daniele Bartolini
af284122a3
Fix warning when compiling with -Dundef on MinGW
2017-03-06 19:27:21 +01:00
Pavel
13669a4331
remove unnecessary using namespace std
from b3CommandLineArgs.h
2017-03-04 03:52:50 -08:00
Erwin Coumans
dcc4c0bda8
fix uninitialized value in new btMatrix3x3::diagonalize
2017-03-03 16:02:12 -08:00
Erwin Coumans
0131754173
Add 'extractRotation' based on "A robust method to extract the rotational part of deformations"
...
///See http://dl.acm.org/citation.cfm?doid=2994258.2994269
Rewrite 'diagonalize' to use 'extractRotation', should fix Issue 846
2017-02-25 16:57:18 -08:00
yunfeibai
e12981fd45
Enable logging a specified list of objects for generic robot logging.
2017-02-20 12:17:12 -08:00
erwincoumans
46c7974927
Merge pull request #947 from erwincoumans/master
...
[pybullet] add some out-of-bounds checks, reduce run-time memory allocations
2017-02-07 12:07:40 -08:00
erwincoumans
88fdffba04
pybullet/shared memory API: add some more check for out-of-bounds indices when setting up a command.
...
avoid many run-time memory allocations in btCompoundCompoundCollisionAlgorithm
2017-02-04 12:32:42 -08:00
erwincoumans
e1cfe94ac9
no special case for <=1 minimumSolverBatchSize
2017-02-01 11:20:36 -08:00
erwincoumans
2fa3e267fc
Merge pull request #940 from erwincoumans/master
...
fix sphere-triangle for degenerate triangles (zero area/normal), fix 'safeNormalize' (probably should remove it)
2017-01-30 21:26:08 -08:00
erwincoumans
72dd8285e8
fix 'safeNormalize' (probably should remove it)
...
Fix for Issue 953: cull degenerate triangles
https://github.com/bulletphysics/bullet3/issues/935
Thanks to Oleg Klimov for the report and reproduction case.
2017-01-30 18:12:09 -08:00
Kibeom Kim
761275df28
Add and use BT_ID_* math functions for idScalar.
2017-01-26 11:40:09 -08:00
Erwin Coumans
980908bdee
add optimized version of sphere-capsule and capsule-sphere, re-using the capsule-capsule code with zero height for a sphere.
2017-01-25 10:45:55 -08:00
erwincoumans
bc997c1fd0
Update btMultiBody.h
2017-01-23 22:53:11 -08:00
Erwin Coumans
1b2db1ff09
more btCapsuleShape fixes
...
use hello_mjcf.xml for MJCF importer
2017-01-23 22:22:02 -08:00
Erwin Coumans
a25a5e523c
drop non-uniform local scaling support for btCapsuleShape
2017-01-23 21:10:32 -08:00
Erwin Coumans
0060c42ae8
more fixes for btCapsuleShape: its entire radius is collision margin, don't let the user override it (similar to a btSphereShape)
2017-01-23 19:38:14 -08:00
Erwin Coumans
d465e1eea5
add capsule support in urdf parser (non-standard extension), capsule.urdf
...
fix btCapsuleShape (X,Y,Z) margin issue
fix uninitialized variables in TinyRenderer: m_hasLightDistance, m_hasLightAmbientCoeff, m_hasLightDiffuseCoeff, m_hasLightSpecularCoeff
pybullet/shared memory API 'getClosestPoints' / b3InitClosestDistanceQuery, only report contacts equal/smaller distance than given
2017-01-23 16:45:18 -08:00
Erwin Coumans
cf9f022d39
[pybullet] getNumConstraints, getConstraintInfo APIs.
...
[pybullet] updated pybullet_quickstartguide.pdf
Fail clearly (assert, return BT_INFINITY) if link index is out of range for btMultiBody methods localPosToWorld,worldPosToLocal,localDirToWorld,worldDirToLocal.
pybullet getConstraintInfo
Fix warnings due to Mac OSX 10.12 upgrade (with backward compatibility)
2017-01-22 19:08:31 -08:00
Erwin Coumans
d81d62a70b
Prepare for Bullet 2.86 release, update version to 2.86 (release will be tagged soon)
...
protect some C-API methods against negative dof indices
add triangle mesh import from MJCF files
update to recent pybullet quickstart guide pdf
2017-01-20 11:48:33 -08:00
Erwin Coumans
93471a1c31
cmake Win32 fixes
...
fixed some more warnings
added alignment macros to some classes
btPersistentManifold from 128 to 16 bytes aligned
prepare command to select collision filter mode (SIM_PARAM_UPDATE_COLLISION_FILTER_MODE)
2017-01-16 13:05:26 -08:00
Erwin Coumans
8e9181f85c
[MJCF import] add custom broadphase collision filter, for MJCF/MuJoCo compatibility
...
[MJCF import] improve MuJoCo importer, support collision filters
fixed a few more warnings
2017-01-16 08:23:49 -08:00
Erwin Coumans
c0c4c8ba3f
fix many warnings
...
remove btMultiSapBroadphase.*
make collisionFilterGroup/collisionFilterMark int (instead of short int)
2017-01-15 22:26:11 -08:00
erwincoumans
e738d1ffde
fix for iOS, add #include <TargetConditionals.h>
2017-01-13 12:06:13 -08:00
Erwin Coumans
9aa5a839d5
add pybullet.changeConstraint / b3InitChangeUserConstraintCommand/ b3InitChangeUserConstraintSetPivotInB /b3InitChangeUserConstraintSetFrameInB command, to change an existing user constraint.
...
add constraint.py example.
allow pybullet.createConstraint to create user constraint without a child body ('fixed' to the world)
2017-01-12 10:30:46 -08:00
Erwin Coumans
5e6cfd70b5
iOS platform and Android don't have __thread local storage, so avoid multi-threaded profiler on those (only on _WIN32, __linux__ and __APPLE__ and not TARGET_OS_IPHONE
...
Add a Sleep(0) for Windows to yield threads (and not Sleep(1))
2017-01-08 12:49:04 -08:00
Erwin Coumans
8e554a0c1b
allow creation of multiple shared memory segments
2017-01-06 09:49:03 -08:00
erwincoumans
a5ecbbc682
Merge pull request #898 from erwincoumans/master
...
many pybullet / VR improvements
2016-12-27 15:57:17 -08:00
Erwin Coumans
a4cf0c8b11
Linux clock_gettime needs rt / librt, so put it behind BT_LINUX_REALTIME for now.
2016-12-26 22:00:39 -08:00
Erwin Coumans
7aa7c4dfee
Linux needs #include <time.h>?
...
/home/travis/build/bulletphysics/bullet3/src/LinearMath/btQuickprof.cpp:251:19: error: ‘CLOCK_REALTIME’ was not declared in this scope
/home/travis/build/bulletphysics/bullet3/src/LinearMath/btQuickprof.cpp:251:37: error: ‘clock_gettime’ was not declared in this scope
2016-12-26 21:15:59 -08:00
Erwin Coumans
0917310521
add nanosecond resolution for Mac OSX clock / about://tracing timings
2016-12-23 18:18:35 -08:00
Erwin Coumans
4c06fd27b3
Example Browser: add option (keypress 'p') to dump json timing profile trace, that you can open using Chrome about://tracing
...
Make btQuickprof thread safe
Add option in btQuickprof to override custom timing profile (btSetCustomEnterProfileZoneFunc, btSetCustomLeaveProfileZoneFunc)
remove b3Printf in a user/physics thread (those added added, while drawing the GUI running in the main thread)
2016-12-23 15:20:04 -08:00
Lunkhound
6d2c7b9aba
constraint solver: fix bug in getOrInitSolverBody (threadsafe case only) for kinematic objects
2016-12-19 21:31:38 -08:00
Erwin Coumans
e0c46f4b1a
Fix contact normal issue if disabling/using small margins, See Issue #889
...
See Issue #889 : GJK/EPA: use smaller tolerances in BT_USE_DOUBLE_PRECISION mode
2016-12-18 18:37:53 -08:00
Erwin Coumans
379a852f93
fix compile issues
2016-12-16 18:43:21 -08:00
Erwin Coumans
8ff1e55166
disable VERBOSE_RESIDUAL_PRINTF
2016-12-16 18:12:33 -08:00
Erwin Coumans
dcd02a1e15
add option to terminate PGS constraint solvers based on a least square residual threshold
...
(for example solverInfo().m_leastSquaresResidualThreshold = 1e-7 and use large m_numSolverIterations
disable sphere-sphere contact cache, it is buggy (some contact point stay in the cache, when sphere penetrates more than total margins)
tweak some gpu demo settings
2016-12-16 18:09:52 -08:00
Erwin Coumans
38b10137c9
allow to terminate btSolveProjectedGaussSeidel MLCP solver based on a least squares residual threshold (m_leastSquaresResidualThreshold)
2016-12-16 14:30:12 -08:00
Erwin Coumans
032e0fb3ce
Merge branch 'master' of https://github.com/erwincoumans/bullet3
2016-12-11 09:17:04 -08:00
Erwin Coumans
710ac09b56
fix clearVelocities (should use 6+dofCount, not 6+numLinks
...
fixes issue 878
2016-12-11 09:16:18 -08:00
Erwin Coumans
15cda75130
add <restitution> in <contact> settings of URDF/SDF
...
allow 'useMaximalCoordinates' and 'useFixedBase' in pybullet.loadURDF.
enable split impulse for btRigidBody, even in btMultiBodyDynamicsWorld.
allow initialization of velocity and apply force for btRigidBody in pybullet/shared memory API.
process contact parameters in URDF also for btRigidBody (friction, restitution etc)
add pybullet.setPhysicsEngineParameter with numSolverIterations, useSplitImpulse etc.
2016-11-30 22:24:20 -08:00
erwincoumans
0516d2ecaa
allow getClosestPoints for btCompoundCollisionAlgorithm and btSphereTriangleCollisionAlgorithm
...
add optional 'lightColor' arg to testrender.py script
2016-11-22 10:11:04 -08:00
erwincoumans
0d5dcb3cc5
setDebugObjectColor
2016-11-21 07:42:11 -08:00
erwincoumans
9ee1c4ec24
regular OR wireframe rendering, not both
...
add option to perform filtering of 'getClosestPoints' using linkA/linkB.
don't use 'realtimesimulation' as default
add/remove debug items within same thread
pybullet, report contact points and normal as [x,y,z] triplet/vector, not 3 scalars
separate 'getClosestPointsAlgorithm': box-box doesn't report closest points with positive distance, and the query shouldn't impact regular 'closesst points'
2016-11-19 17:13:56 -08:00
Lunkhound
2f4ec4f8c9
collisionObject: renamed uniqueId to worldArrayIndex; removed linear search in removeCollisionObject
2016-11-12 12:41:55 -08:00
Erwin Coumans
3b5d0f444b
various fixes
...
move btSimulationIslandManagerMt.cpp from BulletCollision to BulletDynamics
2016-11-10 16:18:20 -08:00
erwincoumans
4c2c2bf74b
Merge pull request #858 from erwincoumans/master
...
pybullet getClosestPoints collision query. center gripper (1 version)
2016-11-10 12:08:17 -08:00
erwincoumans
b16d9abddd
center the gripper
...
fix collision issue, introduced in previous commit (uninitialized new variable)
2016-11-09 22:14:04 -08:00
erwincoumans
0d47d61007
pybullet getClosestPoints
2016-11-09 21:01:04 -08:00
erwincoumans
dced3521a2
Merge pull request #848 from Kotolegokot/master
...
Fix a little typo
2016-11-06 13:45:13 -08:00
erwincoumans
214930922d
make sure m_uniqueIdGenerator in btSerializer is initialized to zero, it can cause issues if not.
2016-11-05 12:53:40 -07:00
erwincoumans
5d66ce20e0
network UDP: transmit structural DNA to deal with version/platform differences.
...
pybullet: allow to specify shared memory key and hostname/port for UDP.
2016-11-04 17:06:55 -07:00
yunfeibai
ff2c79e6bc
Fix a bug in softbody contact handling.
2016-11-03 12:14:39 -07:00
yunfeibai
e8635932cf
Merge remote-tracking branch 'upstream/master'
2016-11-03 10:26:52 -07:00
erwincoumans
908cb2def2
Merge pull request #851 from erwincoumans/master
...
serialization structures update, needed to be done since
2016-11-03 09:11:36 -07:00
erwin coumans
f74a35bacb
serialization structures update, needed to be done since
...
recent addition of src/BulletCollision/CollisionDispatch/btCollisionObject.h
recent (since august 26, 2016) serialization dumps my be corrupt.
2016-11-03 07:11:31 -07:00
yunfeibai
479497997c
Add grasp bunny example with multibody gripper.
2016-11-02 14:53:28 -07:00
yunfeibai
ab6ce65abe
Add contact handling between multibody and softbody.
2016-11-02 13:21:01 -07:00
yunfeibai
3c37db0804
Add API to set bunny properties. Add example to show coupling between softbody and multibody.
2016-11-01 16:45:10 -07:00
Kotik Andreev
bc34d0129e
Fix a little typo
2016-10-31 01:45:44 +03:00
Lunkhound
1c3686ca51
MultiThreaded Demo:
...
- fixing various race conditions throughout (usage of static vars, etc)
- addition of a few lightweight mutexes (which are compiled out by default)
- slight code rearrangement in discreteDynamicsWorld to facilitate multithreading
- PoolAllocator::allocate() can now be called when pool is full without
crashing (null pointer returned)
- PoolAllocator allocate and freeMemory, are OPTIONALLY threadsafe
(default is un-threadsafe)
- CollisionDispatcher no longer checks if the pool allocator is full
before calling allocate(), instead it just calls allocate() and
checks if the return is null -- this avoids a race condition
- SequentialImpulseConstraintSolver OPTIONALLY uses different logic in
getOrInitSolverBody() to avoid a race condition with kinematic bodies
- addition of 2 classes which together allow simulation islands to be run
in parallel:
- btSimulationIslandManagerMt
- btDiscreteDynamicsWorldMt
- MultiThreadedDemo example in the example browser demonstrating use of
OpenMP, Microsoft PPL, and Intel TBB
- use multithreading for other demos
- benchmark demo: add parallel raycasting
2016-10-30 12:47:27 -07:00
yunfeibai
3dc56d7e92
Add files.
2016-10-17 23:46:56 -07:00
yunfeibai
e112b15281
Move btSoftMultiBodyDynamicsWorld to BulletSoftBody.
2016-10-17 23:40:38 -07:00
yunfeibai
3ffd95fbab
Merge remote-tracking branch 'origin/master'
2016-10-17 13:20:31 -07:00
erwin coumans
29f3afe2a4
don't use GL_LINEAR_MIPMAP_LINEAR for shadow maps
...
optimize gpu upload (use glBufferSubData instead of glMapBuffer
Avoid checking char array against zero.
2016-10-14 15:06:09 -07:00
yunfeibai
4fe86d2a1d
Add btSoftMultiBodyDynamicsWorld.
2016-10-11 16:15:44 -07:00
erwin coumans
ddff1bcdc0
remove some useless global constants, move them right into the constructor
2016-10-07 09:00:49 -07:00
erwin coumans
b81eb79ef5
ping-pong back/forward in PGS solving iterations to reduce bias in constraint order
...
add experimental rhs clamp in btMultiBodyJointMotor to control maximum error resolution.
2016-09-28 11:17:11 -07:00
Erwin Coumans
96c1ee4256
revert default contact 'erp' (error-reduction-parameter) from 0.8 to 0.2
...
as it used to be.
2016-09-26 07:55:30 -07:00
Erwin Coumans
6563c9c821
add btVector3::safeNorm to avoid/workaround certain clang/g++ issue or returning -INF
...
when taking sqrtf(0.0000000000000000000000000000000000000108333558)
2016-09-25 23:13:23 -07:00
erwincoumans
c979f147e6
Update btQuaternion.h
...
add missing ; after btAssert
2016-09-25 15:12:19 -07:00
erwincoumans
0dfe20c036
Merge pull request #759 from MichaelMcDonnell/warnings
...
Two bugs
2016-09-23 22:15:16 -07:00
erwincoumans
278a89f7c3
Merge pull request #804 from erwincoumans/master
...
fix uninitialized variable in btMultiBody
2016-09-23 22:13:36 -07:00
erwincoumans
d3bf740c50
Merge pull request #446 from T4Larson/slerpfix
...
fix: btQuaternion.slerp() may result in NaN-quaternions
2016-09-23 22:03:01 -07:00
erwincoumans
fe6c8775da
fix uninitialized variable in btMultiBody
...
use btAssert to detect 0 determinant in btMatrix3x3 inverse
Remove obsolete comment in PosixSharedMemory, the Windows shared memory implementation was done over a year ago
2016-09-23 21:59:38 -07:00
erwincoumans
5c1d2f9a0e
Merge pull request #789 from mwoehlke-kitware/remove-useless-const
...
Remove useless const qualifiers from returns
2016-09-21 08:12:11 -07:00
erwincoumans
e4e12828ca
Merge pull request #790 from mwoehlke-kitware/fix-dl-link-errors
...
Fix clew.c link errors
2016-09-21 08:11:00 -07:00
erwincoumans
5a6db80d01
Merge pull request #788 from mwoehlke-kitware/fix-missing-virtual-dtor
...
Add "missing" virtual dtor
2016-09-21 08:09:14 -07:00
erwin coumans
0a628f06cc
decrease some gjk/epa tolerance to improve collision detection using very small collision margins (0.001/1mm)
...
tweak pr2 gripper.
2016-09-20 12:37:13 -07:00
erwin coumans
db3122233f
remove that odd triangle in the origin of samurai castle (VR)
...
add rolling/spinning friction to cube, remove it from plane/samurai.urdf
URDF2Bullet: support joint limits for revolute and prismatic, only if defined (if upper < lower, disable limit)
add some profiling markers to improve performance
2016-09-19 07:02:43 -07:00
Matthew Woehlke
7e1d72dfe4
Remove useless const qualifiers from returns
...
Remove const qualifiers applied to POD return values, as these are
meaningless and ignored by the compiler and are therefore potentially
misleading. (They also trip -Wignored-qualifiers.)
2016-09-16 11:01:03 -04:00
Erwin Coumans
567b003654
separate spinning and rolling friction coefficients, exposed in URDF as spinning_friction / m_rolling_friction
...
improvements in VR demo, add grasper etc.
2016-09-16 00:57:00 +01:00
Erwin Coumans
1d88cf71e4
separate spinning friction (torsional friction around contact normal) from
...
rolling friction (orthogonal to contact normal)
2016-09-16 00:04:33 +01:00
Matthew Woehlke
ba3a1dcc98
Fix clew.c link errors
...
Add missing link to CMAKE_DL_LIBS to resolve link errors from clew.c
using dlopen and friends but failing to link to libdl.
Fixes #787 .
2016-09-15 12:58:31 -04:00
Matthew Woehlke
ef943bdcf0
Add "missing" virtual dtor
...
Make the dtor of b3DynamicBvhBroadphase virtual, to match that the type
has other virtual methods. This silences a -Wvirtual-dtor warning.
2016-09-15 12:17:23 -04:00
erwincoumans
e5a8eb2425
rolling friction -> combine using rolling*normal friction, add for both objects.
...
rolling friction -> only along the normal, until we have separate rolling friction coefficients on normal and non-normal directions
Don't teleport with grasping controller (VR)
Tune VR grasping a bit.
2016-09-12 19:10:20 +01:00
Erwin Coumans
82661d98cd
init ERP for second btMultiBodyJointMotor,
...
comment-out debug printf in Kuka IK example
2016-09-11 05:54:47 +01:00
erwin coumans
3c706306cd
add experimental pr2-gripper support in VR physics server
...
add setErp to btMultiBodyJointMotor
2016-09-09 14:30:37 -07:00
erwin coumans
4ab02a07e5
Merge branch 'master' of https://github.com/erwincoumans/bullet3
2016-09-08 15:22:41 -07:00
erwin coumans
32eccdff61
Create project file for BussIK inverse kinematics library (premake, cmake)
...
URDF/SDF: add a flag to force concave mesh collisiofor static objects. <collision concave="yes" name="pod_collision">
VR: support teleporting using buttong, allow multiple controllers to be used, fast wireframe rendering,
Turn off warnings about deprecated C routine in btScalar.h/b3Scalar.h
Add a dummy return to stop a warning
Expose defaultContactERP in shared memory api/pybullet.
First start to expose IK in shared memory api/pybullet (not working yet)
2016-09-08 15:15:58 -07:00
erwincoumans
d5ec5ca9a0
Update IDConfig.hpp
2016-09-06 13:07:06 -07:00
Erwin Coumans
ecd814c9c5
export contact friction/damping through URDF and API
...
convert from contact friction/damping to cfm/erp
btCollisionObject::setContactFrictionAndDamping
2016-09-02 16:40:56 -07:00
Erwin Coumans
e98fca1e5e
implement pybullet.getContactPointData(), two optional object unique ids as filter
...
returns a pylist of contact points. Each point has the following data:
0 int m_contactFlags;//unused for now
1 int m_bodyUniqueIdA;
2 int m_bodyUniqueIdB;
3 int m_linkIndexA;
4 int m_linkIndexB;
5-6-7 double m_positionOnAInWS[3];//contact point location on object A, in world space coordinates
8-9-10 double m_positionOnBInWS[3];//contact point location on object A, in world space coordinates
11-12-13 double m_contactNormalOnBInWS[3];//the separating contact normal, pointing from object B towards object A
14 double m_contactDistance;//negative number is penetration, positive is distance.
15 double m_normalForce;
2016-09-01 18:28:39 -07:00
erwincoumans
a370c3bbac
Merge pull request #765 from YunfeiBai/master
...
Torsional and rolling friction for btMultiBody
2016-09-01 14:57:46 -07:00
erwincoumans
85fd7f560c
add first draft of contact point query in shared memory API
...
b3SharedMemoryCommandHandle b3InitRequestContactPointInformation(b3PhysicsClientHandle physClient);
void b3SetContactFilterBodyA(b3SharedMemoryCommandHandle commandHandle, int bodyUniqueIdA);
void b3SetContactFilterBodyB(b3SharedMemoryCommandHandle commandHandle, int bodyUniqueIdB);
void b3GetContactPointInformation(b3PhysicsClientHandle physClient, struct b3ContactInformation* contactPointData);
Implemented for PhysicsClientSharedMemory, not for PhysicsDirect yet.
Add btCollisionObject::setUserIndex2
2016-09-01 13:30:07 -07:00
yunfeibai
9c124b5896
Rolling friction demo for sphere and torsional friction demo for two point contact.
2016-08-30 17:50:37 -07:00
yunfeibai
d784c61b61
Add rolling friction, set rolling friction coefficient from urdf, and set up two point contact experiment.
2016-08-30 11:19:23 -07:00
erwin coumans
4094b9f0df
Disable 'm_robotSim.setNumSimulationSubSteps' because it is not needed at the moment
...
Fix issue in contact/friction between btMultibody and btRigidBody (external force/torque of btRigidBody was not taken into account during contact/friction setup)
Allow 0.1 mm slop in contact, to avoid loosing contact. Todo: allow contacts with positive distance in multibody solver.
2016-08-27 13:44:18 -07:00
Michael Mc Donnell
4636efae2b
[Bullet3OpenCL] Fix check for null-terminated string
...
The code essentially dead because it was checking the pointer to an array for null. The check will alway return true. Instead the code was meant to check if the string had anything in it after the call to clGetDeviceInfo.
2016-08-27 08:13:42 -07:00
Michael Mc Donnell
d5dcb34188
[Bullet3OpenCL] Fix wrong parantheses around b3Fabs
...
The absolute value of m_appliedImpulse was supposed to be compared to the breakingThreshold. Instead a boolean was created from the comparison, and the absolute value of that was taken (which makes no sense).
2016-08-27 08:13:42 -07:00
erwincoumans
c741b17da8
Merge pull request #758 from YunfeiBai/master
...
Expose slider constraint in RobotSimAPI.
2016-08-26 12:26:08 -07:00
erwincoumans
79be5800cb
Merge pull request #757 from erwincoumans/master
...
fix in structure alignment of btMultiBodyLinkDoubleData and btMultiBo…
2016-08-26 12:08:29 -07:00
yunfeibai
5b9b5178f9
Expose slider constraint in RobotSimAPI.
2016-08-26 10:35:10 -07:00
erwin coumans
c5164e503f
fix in structure alignment of btMultiBodyLinkDoubleData and btMultiBodyDoubleData
...
causing serialization issue in URDF/SDF loading in double-precision mode on Windows 32bit.
(it was fine on Mac/Linux 64bit)
bump serialization version to 2.85, as we change the file format
fix in name clash in makesdna.cpp -> intptr_t is already defined.
2016-08-26 10:00:29 -07:00
erwincoumans
c29d445b94
Merge pull request #750 from TIHan/quick_fix1
...
Fixed btKinematicCharacterController from clipping through walls in corners.
2016-08-25 20:26:42 -04:00
erwincoumans
0baef2b84e
Merge pull request #754 from YunfeiBai/master
...
Set physics clock subdivider and fixed constraint in RobotSimAPI.
2016-08-25 20:24:54 -04:00
Erwin Coumans
ba8964c4ac
[InverseDynamics] Support for Jacobians & derivatives
...
This change adds support for calculating Jacobians and
dot(Jacobian)*u terms, along with the required support for
the 3xN matrices in the standalone math library.
It also adds functions to compute kinematics only (position, velocity, accel).
To facilitate tests, the Cl also adds a RandomTreeCreator to create
randomized multibody trees.
Thanks to Thomas Buschmann for this contribution!
2016-08-25 16:24:28 -07:00
yunfeibai
c26da8440d
Add slider constraint.
2016-08-25 11:54:59 -07:00
Will Smith
ba4c389c84
Fixed btKinematicController from clipping through walls in corners.
2016-08-19 18:46:07 -05:00
erwin coumans
62d5b7c5c0
add single step simulation, using 'o' key. use 'i' key to suspend simulation first
...
default background color a bit darker, to show debug lines
tweaked contact point rendering a bit
2016-08-19 10:30:02 -07:00
erwincoumans
c50490a6d9
Merge pull request #742 from sinkingsugar/master
...
Fixed btKinematicCharacterController runtime crashes
2016-08-17 19:54:14 -07:00
Giovanni Petrantoni
a4a6a3ce57
Fixed btKinematicCharacterController runtime crashes coming from previous pull request (more testing is necessary)
2016-08-17 14:19:58 +09:00
yunfeibai
9c4cfde3d6
Fixed constraint for btMultiBody and btRigidBody.
2016-08-15 13:19:00 -07:00
Erwin Coumans
f304fd7611
add one more pybullet renderImage API and testrender.py example
...
tweak Bullet Inverse Dynamics, work-around compiler issue
2016-08-02 11:12:23 -07:00
erwincoumans
d605897d13
Merge pull request #719 from erwincoumans/master
...
fix ffmpeg stream to create quicktime compatible videos
2016-07-29 09:07:46 -07:00
erwin coumans
72e329962e
fix ffmpeg mp4 generation under Windows as well.
...
remove static variables, make them local, to avoid multithreading issues.
2016-07-28 18:06:03 -07:00
erwincoumans
f38d3c5b69
Merge pull request #720 from MiCroN3000/character_controller_fixes
...
Fix kinematic character controller
2016-07-28 13:23:41 -07:00
MiCroN3000
626a913866
The kinematic character controller with various fixes and a few new features like, being able to set any vector for gravity/up, jumping in a certain direction, possibility to use collision masks, angular & linear velocity, angular & linear damping.
2016-07-28 20:15:38 +02:00
erwin coumans
75e86051c2
Add inverse kinematics example with implementations by Sam Buss.
...
Uses Kuka IIWA model description and 4 methods:
Selectively Damped Least Squares,Damped Least Squares,
Jacobi Transpose, Jacobi Pseudo Inverse
Tweak some PD values in Inverse Dynamics example and Robot example.
2016-07-24 22:22:42 -07:00
erwin coumans
25a1714754
disable CProfileManager, might reduce some multi-threading conflicts
2016-07-19 15:55:52 -07:00
erwin coumans
c28cd03fbd
OpenVR controller can pick/drag objects. Instructions, Windows only:
...
Compile using premake+visual studio, and compile App_SharedMemoryPhysics_VR
Compile pybullet using cmake using cmake -DBUILD_PYBULLET=OFF -DCMAKE_BUILD_TYPE=Release ..
Create a symbolic link from c:\python\dlls\pybullet.pyd to C:\develop\bullet3\cmp\lib\Release\pybullet.dll
App_SharedMemoryPhysics_VR
Run Python. Here are some Python lines to get going:
import pybullet as p
p.connect(p.SHARED_MEMORY)
p.loadURDF("cube.urdf")
p.setGravity(0,0,-10)
p.setRealTimeSimulation(1)
Allow real-time simulation in physics server, add pybullet command setRealTimeSimulation to control it
Mesh decimation (reduce number of triangles/vertices) using a Blender modifier for Kuka IIWA and Husky
Disabled the 'glFlush' commands in GLInstancingRenderer.
Add VR controller methods to examples\CommonInterfaces\CommonExampleInterface.h
Use the ANSI version in Windows file/string operations instead of unicode, hope this doesn't break builds.
2016-07-17 23:50:11 -07:00
Erwin Coumans
fcc9d4ebcb
fix SIMD/16-byte alignment issue causing issue in one of the old benchmarks
2016-07-16 22:33:15 -07:00
Erwin Coumans
f9096c2e30
typo/case sensitivity BroadphaseCollision vs NarrowPhaseCollision, aargh
2016-07-16 21:47:07 -07:00
Erwin Coumans
c54a61b97a
More example code is memory-leak free now, in particular PhysicsServerExample.
...
/PhysicsServerCommandProcessor
also fixed some memory issue in InverseDynamicsExample (the base class is supposed to delete collision shape memory)
2016-07-16 21:29:31 -07:00
Erwin Coumans
e2bdd7dbb1
fix more memory leaks, ImportURDFExample is now leak-free
...
eliminate all run-time memory allocation (except for mouse-pick/ray-intersection) in ImportURDFExample
2016-07-16 17:40:44 -07:00
Erwin Coumans
2caa2b7ff4
removed more memory leaks and improve btAlignedAllocator memory-leak debugging
2016-07-16 14:58:11 -07:00
erwincoumans
e2e750efb2
Merge pull request #689 from erwincoumans/master
...
prepare robotics learning examples, see examples/RoboticsLearning/b3R…
2016-07-11 10:38:38 -07:00
erwin coumans
7633cfb800
prepare robotics learning examples, see examples/RoboticsLearning/b3RobotSimAPI.h
...
prepare compliant contact work, urdf loading of parameters (see data/cube.urdf)
2016-07-11 00:26:40 -07:00
hujiajie
8c573177eb
[Working In Progress] Suppress compiler warnings.
...
Suppress several warnings about unused variables.
2016-07-10 23:18:03 +08:00
erwin coumans
02582e3a78
shrink down cube size of BasicDemo 10 times (it looked ginormous in VR) from 2x2x2 meter to 0.2
...
add test for VR HUD/sub-titles
fix issue in previous commit, partial string use %.8s not %8.s
use long long int in b3Clock
fix warning/error in pointer alignment in serialization
Fix pybullet Windows compilation.
(thanks to bkeys/https://github.com/bulletphysics/bullet3/pull/687 )
2016-07-09 15:09:09 -07:00
Erwin Coumans
471d3652e4
(finally) applied patch to fix 'setLocalScaling' of btMultiSphereShape
...
See https://code.google.com/archive/p/bullet/issues/636
http://bulletphysics.org/Bullet/phpBB3/viewtopic.php?f=9&t=8237 and
https://github.com/bulletphysics/bullet3/issues/125
2016-07-02 10:07:13 -07:00
Erwin Coumans
178dd54ca5
remove printf's and fix an issue in btMultiJointMotor in previous commit
2016-06-27 16:10:13 -07:00
erwincoumans
a15eb3035e
default gains 1 -> 0.1
2016-06-24 11:12:19 -07:00
Erwin Coumans
c17c39c2c9
move PD control from PhysicsServerCommandProcessor into btMultiBodyJointMotor
...
improvements/changes in pybullet API
2016-06-24 11:06:56 -07:00
Erwin Coumans
53a0772257
fix some issues related to controlling a robot/multibody beyond body index 0
...
(most testing happened with a single robot/multibody so far)
preliminary pybullet.setJointControl implementation
2016-06-16 18:46:34 -07:00
Giorgos Tzampanakis
4f4eb3a9c6
Fixed: Error because of unparameterized btVectorX
2016-06-14 13:40:38 +00:00
Erwin Coumans
149129826a
remove unused findex from btTypedConstraint.h
2016-06-13 18:33:18 -07:00
erwincoumans
a5fa8712ec
Merge pull request #385 from lordloki/btCone
...
New btConeshape member functions setHeight and setRadius
2016-06-09 08:58:25 -07:00
Erwin Coumans
612e46614a
fix (unused) SSE operator btMatrix3x3 ==, thanks to yyzone for the report/fix.
...
fixes 552
2016-06-04 13:16:06 -07:00
erwin coumans
f469a2cb49
update to tinyrenderer synthetic camera
2016-05-31 22:55:13 -07:00
Erwin Coumans
098e0158ea
fix compile issue(s) in BT_USE_DOUBLE_PRECISION mode
2016-05-26 18:21:57 -07:00
Erwin Coumans
c6bf3a7261
revert sat contact kernels update
2016-05-25 17:14:30 -07:00
Erwin Coumans
535ee33e3b
fix build3/stringify.sh
...
fix some compile issues
2016-05-25 15:37:28 -07:00
artoowang
cfcb8eda9b
Fixed btAssert warning message on printf in MSVC.
2016-05-17 14:10:22 -07:00
Erwin Coumans
372c4ef9c1
Add btConvexHullShape::optimizeConvexHull method,
...
it automatically removes vertices that are not on the convex hull.
It uses the btConvexHullComputer for this.
2016-05-04 13:01:06 -07:00
erwincoumans
5351b20f9d
Merge pull request #609 from AndrewMeadows/ccd-fix-4
...
optimize CCD against btCompoundShapes with dynamicAabbTree
2016-04-30 11:22:36 -07:00
Andrew Meadows
8d970e5c04
minor cleanup
2016-04-27 13:41:42 -07:00
Ryan Huffman
76d39d4439
Fix build error on OSX + Linux
2016-04-27 12:10:28 -07:00
Ryan Huffman
7f0877339e
Replace spaces with tabs
2016-04-27 12:10:28 -07:00
Ryan Huffman
b135699325
Fix errors in ccd against compound objects
2016-04-27 12:10:28 -07:00
Ryan Huffman
25ee137390
Fix missing colObjWrap
2016-04-27 12:10:28 -07:00
Ryan Huffman
af442778a6
Add early rejection tests during CCD against compound objects
2016-04-27 12:10:28 -07:00
erwincoumans
920af5e127
Merge pull request #591 from erwincoumans/master
...
re-enable command log and playback in physics server, report applied motor torque
2016-04-08 18:29:01 -07:00
Erwin Coumans
59b32b7af1
re-enable command log and playback in physics server
...
report applied motor torque in physics server
2016-04-08 18:17:17 -07:00
erwincoumans
df3ddaca5e
Merge pull request #585 from erwincoumans/master
...
btMultiBody joint friction/damping infrastructure
2016-03-17 16:29:40 -07:00
erwincoumans
fe92de3e50
add infrastructure float btMultiBodyLink m_jointDamping, m_jointFriction (actual damping/friction is in a separate commit)
...
add door.urdf for testing damping/friction
2016-03-17 14:54:46 -07:00
erwincoumans
857a4e98e8
Merge pull request #584 from erwincoumans/master
...
turn test/SharedMemory/test.c into a gtest for CI unit testing in github
2016-03-15 23:15:18 -07:00
Erwin Coumans
aa3daaa8c6
turn test/SharedMemory/test.c into a gtest for CI unit testing in github
...
remove overly verbose printfs in importers
fix axis in r2d2.urdf
2016-03-15 22:47:53 -07:00
erwincoumans
2ef8669e75
Merge pull request #581 from erwincoumans/master
...
Use higher precision GJK/EPA collision tolerances in double precision mode. Fix Lua example
2016-03-12 08:58:16 -08:00
Erwin Coumans
87e5128ba8
fix some typos (need to merge into a single implementation later!)
2016-03-11 17:47:00 -08:00
Erwin Coumans
625ea96a3e
accidently moved line in wrong place
2016-03-10 23:28:02 -08:00
Erwin Coumans
ea6ecd3579
Use higher precision GJK/EPA collision tolerances in BT_USE_DOUBLE_PRECISION
...
See https://raw.githubusercontent.com/billhoffman/bullet-pod/ac6aae3e3ee8137de484471094a65bfe166898b4/bullet_gjk_accuracy_patch.diff
2016-03-10 23:12:22 -08:00
hujiajie
3ed7ecbb58
Fix ternary selection operator on float scalars in OpenCL kernels.
...
According to Section 6.3(i) of the OpenCL 1.1 specification, the first
expression of the operator cannot be a float.
2016-03-11 09:40:40 +08:00
hujiajie
ad6fb3afc1
The 'static' storage-class specifier is not supported in OpenCL.
...
This is documented in Section 6.8 (g) in OpenCL 1.1 specification.
2016-03-08 08:49:28 +08:00
Michael Korn
e80bafdf66
fix for issue in getAngleShortestPath()
...
Testing squared norm for <0 does not make any sense. In Addition giving the range of the return values is a great help to understand the descriptions.
2016-03-04 22:01:29 +01:00
Erwin Coumans
4a70df2dfb
fix some warnings
2016-02-29 15:37:03 -08:00
Erwin Coumans
25409f93c7
re-quantize for before using the data in quantize method
...
this fixes issue 558
2016-02-23 08:46:09 -08:00
erwin coumans
6c9bfce975
Support btMultiBody soft contact using ERP and CFM. Also support custom relaxation parameter to allow successive over relaxation.
...
Added demos for rigid and multi body soft (compliant) contact.
Will also add simplified Hertz compliant contact, by dynamically modifying the ERP/CFM to mimic a non-linear spring.
Note that btManifoldPoint is growing too big, we need to implement proper contact constraints derived from btTypedConstraint.
2016-02-22 18:40:00 -08:00
erwin coumans
645a88176d
Enable softness for btRigidBody contacts. This is implemented by some value (CFM, constraint force mixing) to the main diagonal of A.
...
CFM for contacts use world CFM value by default, and can override with custom CFM value using the
BT_CONTACT_FLAG_HAS_CONTACT_CFM stored in m_contactPointFlags.
Boolean m_lateralFrictionInitialized is replaced 'BT_CONTACT_FLAG_LATERAL_FRICTION_INITIALIZED' flag stored in int m_contactPointFlags in btManifoldPoint.
Enable successive over-relaxation parameter (SOR) for contacts. btMLCPSolver uses global CFM.
In one of the next commits, contact softness will be enabled btMultiBody contacts.
Also need to review use of CFM in btMLCPSolvers (only world CFM is used at the moment)
2016-01-22 17:43:36 -08:00
Erwin Coumans
46ddfa39d7
remove unused function in btRigidBody (btSetCrossMatrixMinus)
...
thanks to Stefan for reporting.
2015-12-08 07:54:19 -08:00
erwincoumans
83c560262b
Merge pull request #548 from AndrewMeadows/fix-cmake-whitespace
...
fix whitespace formatting in cmake files
2015-12-07 15:06:59 -08:00
Andrew Meadows
c0c1691c25
fix whitespace formatting in cmake files
2015-12-07 14:08:04 -08:00
Andrew Meadows
a860fff3ad
fix cmake to succeed with -DBUILD_BULLET3=0
2015-12-07 13:43:17 -08:00
Erwin Coumans
5da9e37a05
add BT_DECLARE_ALIGNED_ALLOCATOR() for btTypedConstraint
2015-11-26 12:43:10 -08:00
erwincoumans
0e247264ff
use BT_ID_MAX as std::max is not portable (older Visual Studio versions break)
2015-11-24 17:34:43 -08:00
Erwin Coumans
1f4148d322
fix shared lib build
2015-11-24 12:05:50 -08:00
Erwin Coumans
03cc4f0554
add InverseDynamics example for example browser
...
add CMake support for BulletInverseDynamics and BulletInverseDynamicsUtils
2015-11-24 11:12:02 -08:00
erwincoumans
75d657ec85
change 4 spaces to tab for src/BulletInverseDynamics
...
fix unit test in single precision compilation (use delta t of 0.01 if BT_ID_USE_DOUBLE_PRECISION is not defined)
2015-11-19 12:08:04 -08:00
Erwin Coumans
069936218a
[InverseDynamics] Add custom namespaces per configuration
...
BulletInverseDynamics can be configured to compile using Eigen
instead of Bullet's LinearMath.
Adds a preprocessor defined specific namespace for each
configuration to produce linker errors if incompatible
libraries are linked (eg, builtin core library and
utilities for bullet types).
2015-11-18 08:01:32 -08:00
erwincoumans
de763a26e7
fix portability of BulletInverseDynamics (usual issues: std::pow, M_PI, std::vector->idArray<T>::type, snprintf, pass vec3 and mat33 by const reference, not by value)
2015-11-17 21:51:02 -08:00
Erwin Coumans
aa4d119f98
add real-time safe Inverse Dynamics library+test+utils
...
an example for the example browser will follow.
thanks to Thomas Buschmann
2015-11-17 08:27:38 -08:00
Erwin Coumans
f6a8079353
sync repo
2015-11-11 12:44:26 -08:00
Erwin Coumans
91204e8ed2
avoid naming conflicts Bullet3/Bullet3
2015-11-08 19:31:03 -08:00
Erwin Coumans
72b68409da
clang gets confused/crashes when using the same namespace,
...
need to look if it is a real error or clang issue
should fix Issue 520
https://github.com/bulletphysics/bullet3/issues/520
2015-11-08 13:49:37 -08:00
erwincoumans
3b9b803683
b3CreateBoxCommandSetColorRGBA: allow to specify color when creating bodies through shared memory API
...
Parse and use colors from URDF file (single rgba color per link, not per visual)
Rename btMultiBody 'stepVelocities' to 'computeAccelerationsArticulatedBodyAlgorithmMultiDof'
btHashMap, add const Value* operator[]
remove a few more obsolete btMultiBody methods (on the non-multi-dof path)
fix spelling typo in fillConstraintJacobianMultiDof (fil -> fill)
Add mention to Jakub Stepien for his work on btMultiBody
2015-11-06 17:11:15 -08:00
erwincoumans
2920d7e61f
Only support btMultiBody multi-dof version (remove non-multi-dof path)
...
Use ATTRIBUTE_ALIGNED16 for btMultiBody
Always disable parentCollision for btMultiBody::setupFixed
2015-11-05 21:17:46 -08:00
erwincoumans
d6464ce40d
add 'replay' command log feature: no mouse interaction during replay, and use a fixed number of sim steps in stepSimulation.
...
workaround for reversed separating normal in gjk/epa when using very small shapes, detect case and revert normal.
use smaller world size (10 units versus 100) for higher resolution shadow map
use a hard-coded rolling friction of 0.2 for objects in physics server (will make this configurable)
fix loading of command log files, when platform features are different (64bit/32bit)
2015-11-01 12:48:15 -08:00
erwin coumans
dc81e31e74
upload work-in-progress Collision example using C-API.
2015-10-28 11:48:36 -07:00
erwin coumans
5a21424662
update to examples/Collision and RealTimeBullet3Collision
2015-10-18 23:43:37 -07:00
erwin coumans
7ac497d6f2
WIP example for real-time collision detection features of Bullet
2015-10-18 14:01:25 -07:00
=
4df58c35c7
use const in PhysicsClientC_Api, thanks to Roland
...
fix some warnings for Clang, thanks to Aaron
2015-10-15 08:15:22 -07:00
erwincoumans
14eb70a06f
Merge pull request #466 from rioharu/patch-1
...
Update btInternalEdgeUtility.cpp, closes issue #389
2015-10-09 10:09:01 -07:00
Jukka Jylänki
62d977f5cd
Add missing <stdio.h> include in src/LinearMath/btMatrixX.h for printf() access. (missing in Emscripten/musl libc builds otherwise)
2015-10-08 18:19:10 +03:00
erwincoumans
cb13054f2e
Merge pull request #465 from cameronwhite/conetwist-motor
...
Use the max motor impulse for cone twist constraints when the motor is enabled.
2015-09-10 18:08:19 -07:00
=
3d10338ed5
fix warnings (thanks to Aaron!)
2015-09-10 17:52:41 -07:00
=
5be9119455
run the PhysicsServerExample 'stepSimulation' smoother
...
fix a warning in ThirdParty/stb_image
fix an single/double precision issue in btPolyhedralContactClipping.cpp
2015-09-08 13:39:09 -07:00
Cameron White
86880a2795
Only use the max motor impulse if it is positive (it defaults to -1).
2015-08-27 16:03:02 -04:00
rioharu
086902ea51
Update btInternalEdgeUtility.cpp
...
Fixes issue #389 by removing code which causes a segfault in MinGW's GCC by removing code which did not affect subsequent operations.
2015-08-26 15:10:30 -06:00
erwincoumans
83c4d25819
Merge pull request #460 from erwincoumans/master
...
initial implementation to send debug lines from physics server to client
2015-08-20 19:47:23 -07:00
Erwin Coumans
9c71a0bb7a
Google Code -> github in btCollisionWorld.h documentation
2015-08-12 21:16:23 -07:00
T4Larson
6c71f37da1
fix: btQuaternion.slerp() may result in NaN-quaternions
2015-08-05 21:06:13 +02:00
erwincoumans
5853d071fb
Merge pull request #445 from erwincoumans/master
...
improve usability of ExampleBrowser
2015-08-05 10:09:42 -07:00
erwincoumans
b316f30040
improve usability of ExampleBrowser
...
store command-line arguments in bulletDemo.txt
save/load of configuration, save demo name instead of index
add setBackgroundColor as example (background_color_red) and
mouse move/wheel speed config (mouse_wheel_multiplier and mouse_move_multiplier)
(saved after changing the demo)
default btIDebugDraw colors can be changed
b3CommandLineArgs::GetCmdLineArgument returns bool, and b3CommandLineArgs::addArgs added
fix copy/paste
2015-08-04 18:24:30 -07:00
Cameron White
29b251e81b
Use the max motor impulse if the motor is enabled.
2015-08-04 10:54:34 -04:00
Andrew Meadows
ac7dc87a4d
btCompoundShape data members protected not private
2015-08-03 16:26:23 -07:00
erwincoumans
9d7d5caa8b
Merge pull request #404 from donggas90/master
...
Improve Compound Shape Construction.
2015-08-03 08:49:30 -07:00
=
eb6663ed4b
further work on shared memory API
...
fix dependency of BulletDynamics to Bullet3Common (b3Printf)
2015-08-02 14:00:43 -07:00
Erwin Coumans
26531f3fbc
fix some warnings, disable gimpact by default in world importer,
...
use DIRECTLY_UPDATE_VELOCITY_DURING_SOLVER_ITERATIONS by default for now,
until we find the issue with some failing test cases in btMultiBody
fix a crashing issue in MyMultiBodyCreator.cpp (uninitialized variable)
disable excessive debug printf in URDF2Bullet
2015-07-27 13:28:47 -07:00
Erwin Coumans
8e163c984d
allow to control of powered joints after loading a URDF file, through shared memory
...
more refactor of shared memory joint control API
2015-07-20 23:35:29 -07:00
Erwin Coumans
7698d5f95c
fix some out-of-date comments in btMultiBody, thanks to Thomas Buschmann
...
disable disactivation for btRigidBody in import urdf demo, increase strength of joint motor for btMultiBody
2015-07-15 17:39:43 -07:00
erwincoumans
70837d2d0b
Merge pull request #424 from erwincoumans/master
...
some improvements for ExampleBrowser (--demo-name="Basic Example, shared memory experiment etc)
2015-07-12 15:09:28 -07:00
=
1b9eedd026
make btMultiBody destructor virtual (public github commit)
2015-07-12 14:56:47 -07:00
erwincoumans
51ec862582
Merge pull request #421 from erwincoumans/master
...
fix shadowmap crash on some Intel GPUs, see https://github.com/bullet …
2015-07-12 14:17:56 -07:00
erwincoumans
6c9ce344ea
fix shadowmap crash on some Intel GPUs, see https://github.com/bulletphysics/bullet3/issues/4
...
remove targetdir from all libraries in premake, so it is much easier to create a separate folder for all binary+lib
transmit the serialized btMultiBody data back from server to client, after the server loads a URDF file. This includes base+link+joint names
tweak the serialization routines, so it is easier to skip pointers and to serialize directly to a shared memory buffer
also tweak the serialization code to allow to process data without 'DNA' schema data (assuming file-DNA = memory DNA)
2015-07-10 22:20:06 -07:00
erwincoumans
ae3e392b69
Merge pull request #420 from erwincoumans/master
...
some work towards streaming Bullet data over shared memory for client…
2015-07-09 18:19:59 -07:00
erwincoumans
f6f76901fd
First draft of btMultiBody serialization, including optional names for base, link and joints (see ImportURDFDemo/ImportURDFSetup.cpp how this is done)
...
Bump up version number to 2.84 because of new serialization data.
2015-07-09 17:36:00 -07:00
erwincoumans
285ac286fa
some work towards streaming Bullet data over shared memory for client/server
2015-07-09 14:04:58 -07:00
erwincoumans
c293c3df8f
Update btQuickprof.cpp
2015-07-08 23:22:41 -07:00
erwincoumans
4366070611
Update btQuickprof.cpp
...
deal with Windows XP users, see https://github.com/bulletphysics/bullet3/issues/289#issuecomment-119133169
2015-07-08 22:28:20 -07:00
=
3431773800
expose btMultiBodyConstraint applied impulse (force) on its degree of freedom(s),
...
only tested for btMultiBodyJointMotor for now.
See also MultiBody/MultiBodyConstraintFeedback example
2015-07-06 23:00:46 -07:00
=
33b0d429ba
apply newForceTorque.diff patch: it will allow to report
...
joint reaction force/torque, while using impulse-based response
for btMultiBody
2015-07-06 16:40:09 -07:00
Erwin Coumans (Google)
8517e85b21
fix various warning
...
add b3ResourcePath utility, to locate resources relative to executable
2015-07-03 18:17:14 -07:00
Erwin Coumans
bc8b95dd9d
remove some warnings
2015-06-26 12:59:48 -07:00
erwin coumans
3b4ad1cd5a
add the option to shift the applied force/torque for a multibody joint (mobilizer) to the joint frame origin
2015-06-25 15:09:35 -07:00
Erwin Coumans
d830681674
add option for rigid body/typed constraint to set target velocity
...
compare joint feedback between multi body and rigid body. initial results are promising (not exactly the same, but reasonably close)
2015-06-24 23:19:00 -07:00
erwin coumans
b14afba350
more work-in-progress on joint-torque sensor sample and server/client shared memory API
2015-06-22 15:30:57 -07:00
erwin coumans
6e9eb13235
implement joint reaction forces for mobilizer motor/limit, by passing the constraint forces as 'external forces' and going through the Articulated Body Algorithm
...
minor refactor for forwardKinematics, store the cached world transform in each btMultiBody::link
2015-06-19 15:51:24 -07:00
erwincoumans
89edc40d61
First step in btMultiBody joint force/torque feedback. There is still some work to be done for 'mobilizer limit/motor'.
...
See examples/MultiBody/TestJointTorqueSetup and examples/Constraints/TestHingeTorque for joint feedback.
2015-06-19 09:18:27 -07:00
=
41aa58560b
add TestHingeTorque example using btRigidBody and btHingeConstraint, setup is similar to TestJointTorque using btMultiBody and a revolute joint.
2015-06-15 23:12:29 -07:00
Erwin Coumans
02fbcd2a05
reorder initializer
2015-06-11 11:48:43 -07:00
donggas90
a3b41fdcb9
Simple Improve Array
2015-06-08 13:40:23 +09:00
donggas90
96d9e54080
Improve Compound Shape Construction.
2015-06-08 13:35:17 +09:00
Erwin Coumans
92a612a146
fix in btSoftBodyInternals.h to avoid infinite recursion 'getMargin'
...
but call base class instead
2015-06-05 16:43:17 -07:00
Erwin Coumans
1a4ce475f7
fix an issue with btMultiBodyConstraint, automatically 'finalizeMultiDof' to pre-allocate jacobian data
...
enable joint limit for slider/prismatic joint in btMultiBody version of URDF loader
2015-06-05 11:46:53 -07:00
=
bc806ab68c
exit gracefully and call destructor of the current active example
...
fflush after printf
implemented stepForward and Shutdown for the SharedMemory client/server
2015-05-29 15:04:05 -07:00
Gabor Puhr
98e1334a64
Auto limitation of spring stiffness and damping in btGeneric6DofSpring2Constraint is now optional.
...
Fix: spring stiffness limitation used the mass incorrectly in btGeneric6DofSpring2Constraint.
2015-05-22 12:58:28 +02:00
Jorge Bernal
c02e197e77
New btConeshape member functions to can set radius and height for the
...
cone shape after creation
2015-05-17 17:39:48 +02:00
Erwin Coumans
c2006f31e4
don't build any demos on older Mac OS versions <10.9
...
use btCompoundCompoundCollisionShape to determine maximum collision algorithm size
2015-05-06 08:27:01 -07:00
Erwin Coumans
3da8dbce1c
disable memmove in btDbvt
...
forgot to reset clock
2015-05-04 17:03:37 -07:00
Erwin Coumans
59b511a14e
add .bullet extension in File/Open on Mac
...
add importer support for FIXED_CONSTRAINT_TYPE, to be replaced by btGeneric6DofSpring2Constraint
btFixedConstraint now derives from btGeneric6DofSpring2Constraint
2015-05-03 09:23:35 -07:00
Erwin Coumans
7a0288bf56
fix issue with btDbvt::collideOCL, related to memmove (needs further testing)
...
only enable OpenCL demo if flag --enable_experimental_opencl is passed to ExampleBrowser
2015-05-02 22:33:33 -07:00
erwincoumans
01d14f538a
fix some out-of-bounds error in the OpenCL rigid body pipeline
...
re-enable an OpenCL/gpu rigid body example (box-box stack)
2015-05-01 21:34:27 -07:00
Erwin Coumans
aec360f158
add Raycast demo
2015-04-30 15:31:44 -07:00
erwin coumans
03e53627d6
fix an issue in MPR collision detection (which is not used by default), only for testing in the VoronoiFracture demo
2015-04-29 12:09:12 -07:00
erwin coumans
a165ff54c9
fix maxLinMotorForce/maxAngMotorForce in btSliderConstraint
...
Thanks to Stephen Peters, see also https://github.com/bulletphysics/bullet3/pull/328
2015-04-29 11:05:00 -07:00
Erwin Coumans (Google)
84f2d5b9a0
Merge remote-tracking branch 'bp/master'
2015-04-28 20:57:41 -07:00
erwin coumans
f4b0cc85cd
add Vehicles/Hinge2Vehicle demo, based on the ForkLift demo, using btHinge2Constraint with rigid body wheels
...
change btHinge2Constraint to derive from new btGeneric6DofSpring2Constraint
2015-04-28 18:12:49 -07:00
erwin coumans
05bf86d95f
added LICENSE.txt and AUTHORS.txt file
...
add MultiBody Custom Creation example, to show how to import data from a URDF file and fill up your own data structures.
add btMultiBody::setBaseWorldTransform method
todo: fix cmake build, this patch is premake only
2015-04-23 15:41:17 -07:00
erwincoumans
e884511924
Merge pull request #353 from cameronwhite/fix-conetwist-nans
...
Fix a potential division by zero for cone twist constraints.
2015-04-22 11:44:29 -07:00
Kenneth Bogert
a57e1632a6
Prevent SSE Alignment crash in VS2010 and up
...
See http://bulletphysics.org/Bullet/phpBB3/viewtopic.php?t=8915
2015-04-21 00:31:41 -04:00
Erwin Coumans (Google)
bf39570ff3
fixes for Linux
2015-04-16 16:58:42 -07:00
Erwin Coumans
b2ba615874
fixed for Mac in examples
2015-04-16 15:52:30 -07:00
erwincoumans
794c8ec064
add BspDemo.bsp data file
...
add sphere2.urdf
move btSpatialAlgebra into LinearMath
remove some warnings, introduce BT_ZERO, BT_ONE, BT_HALF as defines for 0.f/0., 1.f/1., 0.5f/0.5 respectively
2015-04-16 10:17:35 -07:00
Cameron White
445dc667b3
Avoid a potential division by zero.
2015-04-06 16:56:13 -04:00
erwin coumans
a883cead46
maintain backward compatibility using BT_ENABLE_GYROPSCOPIC_FORCE = BT_ENABLE_GYROSCOPIC_FORCE_IMPLICIT_BODY
2015-03-30 11:58:57 -07:00
erwin coumans
cba140431e
prepare to add ForkLiftDemo in App_AllBullet2Demos
...
rename Ewert/Catto to World/Body for implicit coriolis forces
2015-03-27 11:59:22 -07:00
Erwin Coumans
9931dd9684
remove Cooper implicit (it was just for comparison, it is buggy)
...
add btMatrix3x3::solve33, thanks to Erin Catto, and added safety against division by zero
2015-03-25 19:33:02 -07:00
Erwin Coumans
2ddd8f78c2
add option to create mp4 videos from App_AllBullet2Demos, using the
...
--mp4=video.mp4 note that you have to re-convert for Quicktime
ffmpeg -f mp4 -vcodec h264 -i test.mp4 -pix_fmt yuv420p test2.mp4
add the option to display text in 3d, used in Coriolis demo
2015-03-25 14:04:26 -07:00
Erwin Coumans
0a04a745dd
added Erin Catto's 'local' implicit coriolis/gyroscopic force, next to 'Ewert', Cooper, explicit and none
...
Configured the gyroscopic demo to show the Dzhanibekov effect
see also https://www.youtube.com/watch?v=L2o9eBl_Gzw
2015-03-24 23:16:45 -07:00
erwin coumans
1e13454511
Added experimental implicit gyroscopic force implementation, one by Michael Ewert, and another by Cooper (from OpenDE)
...
Will also add Erin Catto's local implicit version from the GDC 2015 tutorial
Added demo for btGeneric6DofSpring2Constraint, thanks to Gabor Puhr
Add gfxBridge.autogenerateGraphicsObjects method for Bullet 2 demos in new framework (need to implement all Bullet 2 collision shape types...)
Use 1,1,1 for local scaling in btStaticPlaneShape
2015-03-24 15:55:05 -07:00
Erwin Coumans
20a270bc94
more URDF2Bullet refactor to make URDF import a little bit more re-usable
2015-03-20 13:07:25 -07:00
erwin coumans
5d40d90bd0
add btMultiBodyConstraint::finalizeMultiDof API: if you add multi-body constraints to a multi-dof btMultiBody, before it has been finalized using the btMultiBody::finalizeMultiDof call,
...
then you have to manually call the btMultiBodyConstraint::finalizeMultiDof for all multi-dof multi body constraints.
2015-03-03 13:24:06 -08:00
Erwin Coumans
193e680790
_N -> n, _C -> c, _L ->l, some collision with a standard C++ header?
2015-02-20 13:51:24 -08:00
Erwin Coumans
4e02f6673b
fix a bug related to gyroscopic forces in btMultiBody
2015-02-13 18:27:01 -08:00
erwincoumans
5a91c9ea3c
Merge pull request #317 from namar0x0309/master
...
Fix for 64bit builds btSqrt and USE_APPROXIMATION
2015-02-12 13:34:22 -08:00
=
c8e252ba36
Merge remote-tracking branch 'bp/master'
2015-02-12 09:14:39 -08:00
=
27aa959059
fix some btMultiBody URDF conversion issues in ImportURDFSetup
...
remove various vertex format structures and use GLInstanceVertex from #include "OpenGLWindow/GLInstanceGraphicsShape.h"
btMultiBody::setupPrismatic takes an additional argument to allow a shift of inertia tensor, relative to the joint frame (link frame at q=0)
2015-02-12 09:11:55 -08:00
erwincoumans
15d5659483
Merge pull request #313 from jackoalan/neon-setinterpolate3-fix
...
Fixed self-referencial bug in btVector3's setInterpolate3 (NEON)
2015-02-10 18:10:26 -08:00
Erwin Coumans
c7671779c2
add method to add triangle by its indices for btTriangleMesh
...
See also https://github.com/bulletphysics/bullet3/pull/315
thanks to quiasmo for the contribution
2015-02-04 10:47:13 -08:00
Nassim Amar
e9c7f3a0d2
Fixed macro's to detect 64bit
2015-02-01 14:32:37 -08:00
Nassim Amar
cf705d6fa4
Fix for 64bit builds btSqrt
...
Fix issue with btSqrt with macro USE_APPROXIMATION turned on.
2015-02-01 05:41:07 -08:00
erwincoumans
76b80ca71b
Merge pull request #309 from erwincoumans/master
...
minor fixes (GL2, preSwapFileNameOut), improved URDF/btMultiBody (work in progress), basic debug drawing for btMultiBody
2015-01-27 13:33:37 -08:00
erwincoumans
bd16df8dd6
add basic debug drawing interface for btMultiBodyPoint2Point constraint
...
add basic debug drawing drawText3D in SimpleOpenGL3App
remove a few warnings
add drawTexturedRect3D to GLPrimitiveRenderer to support debug drawing
2015-01-27 10:45:56 -08:00
erwincoumans
a159fbac69
Improved URDF support for btMultiBody and separate graphics/collision/inertial frames and shapes
...
Fix WinXP GetTickCount64 with a typedef
Expose debug drawing mode/flags in UI (hot keys A,D,L,W for now, buttons later)
GLInstancingRenderer: tweak near/far planes to allow closer approach of camera
btDiscreteDynamicsWorld: enable debug drawing for btGeneric6DofSpring2Constraint
btMultiBodyDynamicsWorld: enable basic debug drawing for btMultiBody
btMultibody: allow center-of-mass shift for prismatic and fixed constraint
2015-01-22 17:56:24 -08:00
Jack Andersen
9e8e22bee5
Same fix for B3 codebase
2015-01-20 20:11:56 -10:00
Jack Andersen
991366a48f
Fixed self-referencial bug in btVector3's setInterpolate3
2015-01-20 19:10:52 -10:00
erwincoumans
bb2805379c
Merge pull request #292 from lunkhound/fix-sse-win32
...
quickfix: SSE was accidentally disabled on windows desktop
2014-12-16 14:38:17 -08:00
erwincoumans
c7d9c5ba5b
Merge pull request #296 from rraallvv/master
...
Stop adding motion in the kinematic character controller if the walk dir...
2014-12-16 14:37:05 -08:00
emMichael Alexander Ewert/em
d4be7a4823
Revert "replace unstable Gyroscopic force calculations with stable back Euler derived"
...
This reverts commit 0ce687853d
.
2014-12-12 16:35:40 -08:00
emMichael Alexander Ewert/em
92dabdc07d
Fix a couple of bugs in 2dConvex Hull algorithm.
...
* Need to use atan2 so 3d angles are calculated properly after projection.
* Need to handle case where the first tripple of points is non-convex,
previously this would cause the algorithm to fail with only 1 point.
2014-12-12 15:39:16 -08:00
emMichael Alexander Ewert/em
0ce687853d
replace unstable Gyroscopic force calculations with stable back Euler derived
...
update. Removed max force clamping.
2014-12-12 11:49:36 -08:00
Rhody Lugo
2118ade465
Stop adding motion in the kinematic character controller if the walk direction is near zero
2014-12-12 10:31:23 -04:30
erwin coumans
cf2b4e03b5
fix a problem in the btMultiBodyConstraint related to self-collision, see also
...
https://github.com/bulletphysics/bullet3/issues/290
2014-12-09 16:57:21 -08:00
Lunkhound
beaf1b5922
fix for fix
2014-11-25 13:48:20 -08:00
Lunkhound
8cac481091
quickfix: SSE was accidentally disabled on windows desktop by a change intended to disable it only for Windows Phone
2014-11-25 12:44:22 -08:00
Erwin Coumans
ba0dd676aa
comment-out the memset in DEBUG mode in btVector3.cpp and b3Vector3.cpp
2014-11-02 14:12:54 -08:00
Erwin Coumans
5757de14d7
Merge remote-tracking branch 'bp/master'
...
Conflicts:
btgui/Bullet3AppSupport/CommonParameterInterface.h
2014-11-02 13:12:16 -08:00
Erwin Coumans
b1863f7ce2
Refactored GJK, EPA and MPR as a template class, reducing/removing the dependencies
...
to the rest of the Bullet code base. This code will replace the original GJK/EPA
in a future commit.
Added btMprPenetration, an implementation of Minkowski Portal Refinement
by Daniel Fiser. Original MPR idea is by Gary Snethen, and the first
implementation is here: https://github.com/erwincoumans/xenocollide
It is an alternative to EPA, although computing the local penetration depth.
EPA computes the global penetration depth. In many cases, MPR is sufficient
and performs better than EPA.
2014-11-02 12:53:36 -08:00
erwin coumans
4b665fa82b
add btFileUtils::toLower to convert a string (char*) to lower case
...
URDF import demo: add COLLADA .dae file support
add FiniteElementMethod demo, extracted from the OpenTissue library (under the zlib license)
don't crash if loading an invalid STL file
add comparison with Assimp for COLLADA file loading (disabled by default, to avoid library dependency)
Gwen: disable some flags that make the build incompatible
2014-10-29 13:18:34 -07:00
erwincoumans
959e86eb1a
Merge pull request #276 from erwincoumans/master
...
Enable CMake support for Windows Phone (_WIN32+_M_ARM) and Windows Store...
2014-10-27 12:47:59 -07:00
erwin coumans
aaaf8dc4e2
Enable CMake support for Windows Phone (_WIN32+_M_ARM) and Windows Store Apps,
...
Use this recent cmake version (http://cmakems.codeplex.com/ ) or future cmake that has the Windows Phone/Store App support
Use the following defines in CMake:
-DCMAKE_SYSTEM_NAME=WindowsPhone or -DCMAKE_SYSTEM_NAME=WindowsStore
-DCMAKE_SYSTEM_VERSION=8.0 or -DCMAKE_SYSTEM_VERSION=8.1
Thanks to Microsoft OSS group for the patch!
2014-10-24 15:44:33 -07:00
erwincoumans
0160512a01
Merge pull request #275 from erwincoumans/master
...
fix build
2014-10-22 14:47:53 -07:00
erwin coumans
1ce647742c
fix build
2014-10-22 14:46:48 -07:00
erwincoumans
fccd00b3cf
Merge pull request #260 from sippeangelo/issue-260
...
Microsoft compiler wrongly assumed on Windows platform
2014-10-17 13:49:30 -07:00
erwincoumans
1d78b1aef9
Merge pull request #271 from erwincoumans/master
...
btHingeConstraint to set/get ERP, refactor gfx backends (work-in-progress)
2014-10-17 13:48:02 -07:00
erwin coumans
1baf2e5cc6
add support to btHingeConstraint to set/get ERP, example use:
...
hinge->setParam(BT_CONSTRAINT_ERP,0.5);
btScalar erp = hinge->getParam(BT_CONSTRAINT_ERP);
Also, preliminary support for status bar messages in demo framework.
2014-10-17 13:05:53 -07:00
Kevin Watts
0623f99a27
Adding virtual dtors to classes in btSoftBody
2014-10-16 11:58:44 -07:00
sippeangelo
f9674d4b95
MSVC-specific function calls wrapped in a MSVC-specific macro instead of a Windows-specific one.
2014-10-07 18:21:13 +02:00
AlexanderPolyakov
b7699024e2
Fix for use of uninitialized variables.
...
m_implicitShapeDimensions was used in setMargin, called from setSafeMargin
from constructors of btBoxShape, btCylinerShape and btBox2dShape,
effectively using uninitialized variable and leading to floating point
exceptions.
It was working correctly only because in the same constructor
m_implicitShapeDimensions was reinitialized after setSafeMargin.
Properly initialize variable before use by first setting it up and only
then using it in setSafeMargin.
2014-10-07 19:26:14 +04:00
Erwin Coumans
4352eb1ea4
disable btInMemorySerializer by default
2014-09-16 20:16:01 -07:00
Erwin Coumans
1fccfc4e28
fix btInMemorySerializer
2014-09-16 20:14:31 -07:00
Erwin Coumans
ad251da294
disable btInMemorySerializer by default
2014-09-16 19:56:26 -07:00