Commit Graph

342 Commits

Author SHA1 Message Date
Daniel Chappuis
8a75c867a5 Change version number of the library 2016-04-11 20:15:20 +02:00
Daniel Chappuis
41dfaf0fa5 Fix warnings 2016-04-09 11:26:43 +02:00
Daniel Chappuis
5b7a096e27 Remove .mtl file and add doxygen documentation in TriangleVertexArray 2016-04-07 08:48:25 +02:00
Daniel Chappuis
fcadbed56f Fix issue in function to compute triangle barycentric coordinates 2016-04-02 02:50:32 +02:00
Daniel Chappuis
235b1db90c Fix warnings 2016-03-30 22:39:47 +02:00
Daniel Chappuis
315c701f34 Move method in cpp file 2016-03-30 07:09:35 +02:00
Daniel Chappuis
fc1f844135 Merge branch nanogui into develop 2016-03-21 20:57:42 +01:00
Daniel Chappuis
3e98ab2282 Add support for rolling resistance in the contact solver 2016-03-20 23:01:38 +01:00
Daniel Chappuis
10549796c8 Add functions in Vector2, Vector3 and clamp vector function in mathematics 2016-03-20 22:54:08 +01:00
Daniel Chappuis
63fb6261a3 Fix issue with linear/angular damping 2016-03-20 22:53:05 +01:00
Daniel Chappuis
d0481e0901 Fix compilation errors/warnings on Linux 2016-02-22 23:26:50 +01:00
Daniel Chappuis
d6580f94aa Fix conflicts when merging triangularmeshes into develop 2016-02-15 20:14:30 +01:00
Daniel Chappuis
32bee688be Working on demo scenes in testbed application 2016-02-14 19:36:56 +01:00
Daniel Chappuis
eeb1052833 Fix issue in HeightField and user Perlin noise to generate terrain 2016-02-11 23:09:01 +01:00
Daniel Chappuis
4931e1450a Fix issues in HeightFieldShape 2016-02-08 22:24:57 +01:00
Daniel Chappuis
be4cbbffd9 Fix issue in HeightFieldShape 2016-02-01 18:49:45 +01:00
Daniel Chappuis
ece6db9636 Working on HeightFieldShape 2016-01-28 23:04:01 +01:00
Daniel Chappuis
03a31e44f3 Working on HeightFieldShape 2016-01-21 22:27:52 +01:00
Daniel Chappuis
b9112be1dc Modification in ConvexShape and continue working on HeightFieldShape 2016-01-19 22:37:03 +01:00
Daniel Chappuis
ec3a9cef87 Modificaitons in ConcaveMeshShape 2016-01-14 21:43:19 +01:00
Daniel Chappuis
b7769e5211 Add HeightFieldShape class 2016-01-14 21:34:30 +01:00
Daniel Chappuis
739e0fec73 Modifications in methods to get support point in many collision shapes 2016-01-14 21:24:21 +01:00
Daniel Chappuis
a5f39de375 Fix issues related to local scaling in ConvexMeshShape 2016-01-12 22:48:14 +01:00
Daniel Chappuis
a12703b86d Make possible to create a ConvexMeshShape using a TriangleVertexArray 2016-01-07 23:04:39 +01:00
Daniel Chappuis
8be408ccec Modifications for smooth concave mesh contacts 2016-01-05 18:39:22 +01:00
Daniel Chappuis
4362033018 Add object margin to TriangleShape 2015-12-16 18:39:13 +01:00
Daniel Chappuis
0b6d9af18e Add testRayIntersect() method to AABB and use in raycasting broadphase 2015-12-07 23:03:04 +01:00
Daniel Chappuis
df88e59017 Transform ray from world-space to local-space earlier during raycasting 2015-12-07 17:32:18 +01:00
Daniel Chappuis
9c7f70b9b7 Add double sided raycast test for TriangleShape, add unit tests 2015-12-05 17:51:07 +01:00
Daniel Chappuis
6ebad66acf Working on triangles mesh raycasting 2015-12-02 22:25:52 +01:00
Daniel Chappuis
3ebb00fd68 Modifications in testbed for setScaling() method on objects 2015-11-24 07:03:02 +01:00
Daniel Chappuis
22b214fb91 Add setScaling() method to objects in testbed/common 2015-11-20 07:20:56 +01:00
Daniel Chappuis
3476f3e9c4 Add setLocalScaling() method to CollisionShape and ProxyShape and fix issue in collision detection test method 2015-11-19 07:20:43 +01:00
Daniel Chappuis
4eceb7e7c6 Small modifications 2015-11-16 19:08:36 +01:00
Daniel Chappuis
5c8320583d Change the testCollision() methods to return void instead of bool 2015-11-16 07:25:46 +01:00
Daniel Chappuis
32d9c0e1b8 Fix issue in convex vs concave mesh collision 2015-11-16 07:05:07 +01:00
Daniel Chappuis
568f03461f Continue working on triangle mesh collision detection 2015-11-13 21:23:34 +01:00
Daniel Chappuis
9fd98f8efc Add Timer.h and Timer.cpp files back (used for Profiler) 2015-11-13 21:20:04 +01:00
Daniel Chappuis
d9fe3ed97f Make DynamicAABBTree more generic and use less memory per node 2015-11-06 17:29:42 +01:00
Daniel Chappuis
63094dfd92 Fix issue in ConcaveMeshShape (AABB calculation) 2015-10-27 18:34:29 +01:00
Daniel Chappuis
1c735e483c Working on triangular mesh collision detection 2015-10-26 18:15:25 +01:00
Daniel Chappuis
a070dca761 Small changes in ContactManifold 2015-10-19 17:59:41 +02:00
Daniel Chappuis
c3c9a5c38c Remove contact manifolds that do not have contact points anymore after manifold update 2015-10-19 06:55:35 +02:00
Daniel Chappuis
b5314040b5 Do not use contact normal choice when there is a single manifold 2015-10-16 06:54:25 +02:00
Daniel Chappuis
55789d5cdf Fix memory leak 2015-10-15 08:26:33 +02:00
Daniel Chappuis
85c6a2eaf5 Return manifold set by reference and not by pointer 2015-10-15 07:48:28 +02:00
Daniel Chappuis
20c9794a20 Remove ProxyShapes pointers from OverlappingPair 2015-10-13 19:10:13 +02:00
Daniel Chappuis
3acdeb8cd2 Remove dynamic memory allocation of ContactPointInfo instances during narrow-phase 2015-10-12 18:37:18 +02:00
Daniel Chappuis
c7846d4a29 Report narrow-phase contacts to the collision detection in a more generic way 2015-10-12 18:02:18 +02:00
Daniel Chappuis
ec5e41c19e Add ContactManifoldSet to allow several ContactManifolds per overlapping pair 2015-10-08 21:28:37 +02:00
Daniel Chappuis
fc91540a79 Add ContactManifoldSet class 2015-10-02 07:04:05 +02:00
Daniel Chappuis
aab1413f4d Continue working of triangular meshes 2015-09-13 13:02:05 +02:00
Daniel Chappuis
a37f00c41c Use a CollisionShapeInfo instead of a ProxyShape in the collision detection algorithms 2015-09-10 07:30:50 +02:00
Daniel Chappuis
cd808fcf62 Modify the way the collision shapes are created (we don't make an internal copy anymore) 2015-09-04 19:56:27 +02:00
Daniel Chappuis
ae122f07d6 Add ConcaveShape et ConvexShape classes 2015-08-31 17:33:34 +02:00
Daniel Chappuis
16617fef8e Merge branch 'develop' of https://github.com/ColinGilbert/reactphysics3d into ColinGilbert-develop 2015-08-27 22:32:18 +02:00
Daniel Chappuis
0ddec3f842 Start working on triangular meshes collision detection 2015-08-27 22:31:05 +02:00
Colin
22d90659bb Final fix :) 2015-08-26 04:30:07 -06:00
Colin
494f866357 Fix merge mess 2015-08-26 04:23:44 -06:00
Colin
87b88fc953 Merge branch 'develop' of https://www.github.com/DanielChappuis/reactphysics3d into develop 2015-08-26 04:01:18 -06:00
Colin
1468f8f13c Replace dynamic_cast with static_cast 2015-08-24 13:36:30 -06:00
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