Commit Graph

281 Commits

Author SHA1 Message Date
Daniel Chappuis
c76e5247aa Allow the user to use custom collision detection algorithm 2015-08-19 18:48:08 +02:00
Daniel Chappuis
7ce44f9775 Fix warnings 2015-08-17 06:44:26 +02:00
Daniel Chappuis
345afc1a1d Destroy bodies and joints in the destructor of CollisionWorld and DynamicsWorld 2015-08-13 07:19:15 +02:00
Daniel Chappuis
a4e28ddcf1 Add getContactsList() method to DynamicsWorld 2015-08-11 18:32:06 +02:00
Daniel Chappuis
2a3fe8f8d1 Handle division by zero in a better way in Vector2, Vector3 getUnit() and normalize() 2015-08-11 06:58:55 +02:00
Daniel Chappuis
39b7883462 Add methods to query number of solver iterations in DynamicsWorld 2015-07-11 18:34:37 +02:00
Daniel Chappuis
82f6bf2dbb Work on the GUI 2015-06-30 19:50:17 +02:00
Daniel Chappuis
80cf65ccf2 Allow to change the gravity vector of the DynamicsWorld 2015-06-29 23:35:50 +02:00
Daniel Chappuis
f376e2043f Modify the CollisionBody::setTransform() and Body::setIsSleeping() methods 2015-06-25 22:27:20 +02:00
Daniel Chappuis
6279867964 Remove the use of the old transform variable in CollisionBody 2015-06-16 22:46:43 +02:00
Daniel Chappuis
b8192db3ef Fix compilation error in DynamicsWorld 2015-04-20 23:22:22 +02:00
Daniel Chappuis
fb90eac003 The time accumulator and frame interpolation should now be done outside the physics engine 2015-04-18 18:33:25 +02:00
Daniel Chappuis
3aaac820e0 Fix compilation error on Visual Studio 2013 2015-04-08 22:10:34 +02:00
Daniel Chappuis
6679bb27bc Changes for the next release 2015-02-15 21:56:45 +01:00
Daniel Chappuis
3a8e69654f Add Doxygen documentation 2015-02-12 22:31:26 +01:00
Daniel Chappuis
c56557898f Small modifications 2015-02-09 22:37:36 +01:00
Daniel Chappuis
0b3abacb3c Fix possible memory leaks 2015-02-07 14:15:05 +01:00
Daniel Chappuis
bb0da781a7 Fix compilation warnings 2015-02-01 01:09:58 +01:00
Daniel Chappuis
c057e88983 Small changes in collision detection 2015-01-27 22:40:31 +01:00
Daniel Chappuis
e3719b32e5 Fix issue that prevented us from compiling with double precision with CMake 2015-01-22 21:56:30 +01:00
Daniel Chappuis
68958d0ed1 Add internal physics tick callback methods in EventListener class 2015-01-20 22:17:40 +01:00
Daniel Chappuis
9f4e63361f Small optimization in EPA algorithm 2015-01-19 21:55:18 +01:00
Daniel Chappuis
54d8b8518e Fix two issues in EPA Algorithm 2015-01-18 21:25:15 +01:00
Daniel Chappuis
c8a83768d5 Only compute narrow collisition test if at least one body is awake and not static 2014-12-31 01:47:50 +01:00
Daniel Chappuis
c15b83db4a Add collision and raycast filtering using bits mask 2014-12-31 01:19:14 +01:00
Daniel Chappuis
aae4da54d0 Add methods to test collision and AABB overlap in physics world 2014-12-28 00:54:34 +01:00
Daniel Chappuis
2ab1aace7c Raycast query now returns false if the body is not active 2014-11-29 17:05:53 +01:00
Daniel Chappuis
4ae7e7997a Fix issues in surface normal computation in raycast method of ConeShape and BoxShape 2014-11-27 21:05:32 +01:00
Daniel Chappuis
5d2cf593b5 Remove the PairManager class 2014-11-21 21:38:17 +01:00
Daniel Chappuis
5f7af61593 -Remove unnecessary contact manifold
-Delete the BroadPhasePair class
2014-11-21 21:27:09 +01:00
Daniel Chappuis
2570d794c3 Fix issues in CollisionBody 2014-11-20 21:59:53 +01:00
Daniel Chappuis
adc53c6523 Make possible to use the CollisionBody::setIsActive() method to activate or deactivate the simulation of a given body 2014-11-09 18:53:50 +01:00
Daniel Chappuis
ca660b5057 Replace some matrix multiplications by quaternion multiplications 2014-11-05 20:52:21 +01:00
Daniel Chappuis
3da146eb84 Implement world ray casting query 2014-11-04 22:38:40 +01:00
Daniel Chappuis
e9257ec56f Change raycasting so that a ray is given by two points instead of a point and a direction 2014-10-21 22:26:40 +02:00
Daniel Chappuis
08e286d27c Implement raycasting for cone shape 2014-10-08 21:38:40 +02:00
Daniel Chappuis
25c11c6d6a Implement raycasting for capsule shape 2014-09-20 17:00:32 +02:00
Daniel Chappuis
78193d9b03 Small improvements in sphere and cylinder raycasting 2014-09-20 16:59:47 +02:00
Daniel Chappuis
188251afd4 Fix issue with raycasting in cylinder shape 2014-09-20 10:52:42 +02:00
Daniel Chappuis
c07a2dc9a2 Implement raycasting with cylinder shape 2014-09-19 22:53:40 +02:00
Daniel Chappuis
ebf13c3366 Use the standard library swap() function instead 2014-09-19 22:53:05 +02:00
Daniel Chappuis
a89b258418 Implement raycasting for the BoxShape 2014-09-08 23:19:07 +02:00
Daniel Chappuis
0dd55e716b Implement raycasting with sphere shape 2014-09-04 22:32:29 +02:00
Daniel Chappuis
677c694109 Continue the implementation of convex shape raycasting 2014-09-02 22:54:19 +02:00
Daniel Chappuis
3c1b819fda Implement the testPointInside() methods in the collision shapes 2014-08-09 10:28:37 +02:00
Daniel Chappuis
6c505377c5 Clean up the include statements 2014-08-07 21:38:31 +02:00
Daniel Chappuis
47b2eb457a Allow the user to attach user data to a ProxyShape object 2014-08-04 22:57:24 +02:00
Daniel Chappuis
ab8656fc0b Remove all the special proxy shapes to keep only the ProxyShape class 2014-08-04 22:46:58 +02:00
Daniel Chappuis
bd5668ed51 Work on the testPointInside() method 2014-08-01 12:36:32 +02:00
Daniel Chappuis
0faacdbd6b Merge branch 'raycast' of https://github.com/DanielChappuis/reactphysicsd into raycast 2014-07-22 22:46:24 +02:00
Daniel Chappuis
5dd9ee826e Add classes and tests for raycasting 2014-07-21 23:08:18 +02:00
Daniel Chappuis
b5bf3ea032 Remove the Ray.cpp file 2014-07-13 20:28:28 -07:00
Daniel Chappuis
a52f89a33e Add the Ray class for raycasting 2014-07-13 18:11:15 -07:00
Daniel Chappuis
1415bad00e Small modifications 2014-07-09 23:45:19 +02:00
Daniel Chappuis
050b610d8c Remove check() and checkNode() methods from DynamicAABBTree in release mode 2014-07-07 19:01:26 +02:00
Daniel Chappuis
a983026094 Inflate the AABB in direction of linear motion in Dynamic AABB tree 2014-07-03 00:13:30 +02:00
Daniel Chappuis
114360337c Fix issue in RigidBody::applyForce() method 2014-06-29 21:59:06 +02:00
Daniel Chappuis
3aa05ef61a Fix issues and add conversion from Euler angles to Quaternion 2014-06-24 23:31:13 +02:00
Daniel Chappuis
bc4de62e75 Fix issue in the collision detection for compound shapes 2014-06-10 23:37:11 +02:00
Daniel Chappuis
cbeeec21f3 fix issues in Dynamic AABB Tree and add compound shapes in the examples 2014-06-10 22:46:32 +02:00
Daniel Chappuis
aa76c85e60 continue to replace SAP broad-phase by a dynamic AABB tree 2014-05-15 06:39:39 +02:00
Daniel Chappuis
643ca41922 continue to work on replacing SAP broad-phase by dynamic AABB tree 2014-04-11 23:50:00 +02:00
Daniel Chappuis
76cb11a74f Add the DynamicAABBTree class 2014-03-16 20:59:10 +01:00
Daniel Chappuis
d622e2ff17 Fix issue in the broad-phase pair manager 2013-11-21 23:26:19 +01:00
Daniel Chappuis
1812402617 Add support for the different body types (static, kinematic, dynamic) 2013-11-21 23:24:11 +01:00
Daniel Chappuis
7432a87149 Modify cmake files and add comments in the code 2013-10-06 16:03:25 +02:00
Daniel Chappuis
3173b368c7 Fix compilation error on Mac OS X and errors in SliderJoint and HingeJoint 2013-09-30 23:34:47 +02:00
Daniel Chappuis
b5ae655b0a Add comments, modify method names, change solver nb of iterations, ... 2013-09-27 18:43:45 +02:00
Daniel Chappuis
97b0903a9d Modify comments 2013-09-25 00:11:23 +02:00
Daniel Chappuis
7ca5b88ce3 Fix compilation errors on Mac OS X and remove the compilation of freeglut from the CMake files 2013-09-12 22:45:43 +02:00
Daniel Chappuis
07df001e8b Add the EventListener class 2013-09-10 21:33:52 +02:00
Daniel Chappuis
d4c7eee175 Rename the Constraint class into Joint and do not perform collision detection between two sleeping bodies 2013-09-07 10:57:58 +02:00
Daniel Chappuis
a009debf21 Fix issue in the contact solver that reduces jittering 2013-09-03 19:31:50 +02:00
Daniel Chappuis
8db7823433 Continue to implement the sleeping technique 2013-09-03 19:30:43 +02:00
Daniel Chappuis
475ec5be5f Iterate over the islands to solve the contacts and joints 2013-08-31 19:03:21 +02:00
Daniel Chappuis
f1d29b5123 Implement the islands computation 2013-08-26 21:28:48 +02:00
Daniel Chappuis
2e6f571b98 Implement linear and angular velocity damping 2013-08-06 20:51:56 +02:00
Daniel Chappuis
d2f7f6e28c Release memory in the Sweep-And-Prune algorithm when several objects are removed from the world 2013-07-17 00:09:15 +02:00
Daniel Chappuis
828af79bcf Fix issues in the Sweep-And-Prune algorithm (thanks Aleksi for reporting them) and handle the broad-phase world limits in a better way 2013-07-16 22:28:03 +02:00
Daniel Chappuis
ffd79a89e3 Add the convex mesh collision shape 2013-07-15 19:10:30 +02:00
Daniel Chappuis
c3f4355c25 Modify the method that return the bounds of a collision shape and make the getSupportPoint() methods non-const 2013-07-15 19:09:07 +02:00
Daniel Chappuis
88504bbb44 Add some description comments in the collision shapes 2013-07-10 00:22:40 +02:00
Daniel Chappuis
25b6b015b8 Add some private copy-constructors and private assignment operators 2013-07-10 00:21:31 +02:00
Daniel Chappuis
9d9142af30 Add the CapsuleShape class for the capsule collision shape 2013-07-10 00:18:55 +02:00
Daniel Chappuis
e081661d8c Add the Material class to store the material properties of a rigid body 2013-07-10 00:17:14 +02:00
Daniel Chappuis
a3ca3598d5 Remove the margin gap for the BoxShape and make possible to choose the collision margin when creating a collision shape 2013-07-03 22:50:00 +02:00
Daniel Chappuis
84d946ac48 Modifications of the examples 2013-07-03 22:42:58 +02:00
Daniel Chappuis
501b0747d3 Modifications in the examples 2013-07-02 23:14:08 +02:00
Daniel Chappuis
d58db2e6f2 Remove the gravity from the rigid body external force and allow the user to enable/disable the gravity for each body 2013-06-27 19:53:13 +02:00
Daniel Chappuis
ce0078c2a9 Implement the non-linear-gauss-seidel position error correction 2013-06-26 22:28:31 +02:00
Daniel Chappuis
1c0726d9d6 Add the fixed joint 2013-06-12 20:43:54 +02:00
Daniel Chappuis
c4d6206ee2 Finish the implementation of the Hinge joint and some others modifications 2013-06-09 16:31:01 +02:00
Daniel Chappuis
9c0844cf1b Finish the implementation of the slider joint 2013-05-29 22:45:02 +02:00
Daniel Chappuis
61562b3560 Implement the upper limit for the slider joint 2013-05-23 22:52:08 +02:00
Daniel Chappuis
c7aa6e7e0e Start working of the SliderJoint limits 2013-05-22 23:38:30 +02:00
Daniel Chappuis
78abbaac72 Fix issues in the BallAndSocketJoint and SliderJoint 2013-05-21 23:03:14 +02:00
Daniel Chappuis
8f37d4ac98 Fix issues in the unit tests for Vector2 and Matrix2x2 2013-05-16 21:42:13 +02:00
Daniel Chappuis
0f17bd1b0b continue working on the slider joint 2013-05-12 12:43:07 +02:00
Daniel Chappuis
f23096af50 modify code in the Matrix2x2 class 2013-05-09 19:47:09 +02:00
Daniel Chappuis
7a2c2bdbd5 Add Vector2 and Matrix2x3 classes 2013-05-09 19:02:09 +02:00