Commit Graph

436 Commits

Author SHA1 Message Date
Minigee
288627bd41 Fixed a bug where changing the transform of a Collider attached to a sleeping RigidBody caused the body to remain asleep 2021-06-26 02:30:14 -05:00
Daniel Chappuis
3ae53a0466 Remove comments 2021-02-03 13:31:41 +01:00
Daniel Chappuis
bacdf23f8b Fix issue and modifications in HeightFieldShape 2020-12-31 16:41:05 +01:00
Daniel Chappuis
d0fa4c2755 Improve the raycasting performance against HeightFielfShape with a better middle-phase algorithm 2020-12-28 00:07:08 +01:00
Daniel Chappuis
5443f0bd54 Fix wrong normal orientation in TriangleShape raycasting 2020-12-28 00:04:23 +01:00
Daniel Chappuis
d4a58b7228 Do not recompute triangle normal during triangle raycasting 2020-11-15 11:56:44 +01:00
Daniel Chappuis
9d645bdca7 Use faster ray vs ABBB intersection algorithm in raycasting DynamicAABBTree broad-phase 2020-11-08 15:13:17 +01:00
Daniel Chappuis
2b052969a9 Compute the half-edge structure of TriangleShape and BoxShape only once at the beginning 2020-10-29 23:09:15 +01:00
Daniel Chappuis
ec5350bb5f Make AABB methods inline 2020-10-20 22:46:20 +02:00
Daniel Chappuis
9be56213e0 Optimization in NarrowPhaseInfoBatch 2020-10-14 18:30:21 +02:00
Daniel Chappuis
44e1b12aaf Fix robustness issue with SphereShape vs SphereShape collision detection 2020-10-10 00:10:05 +02:00
Daniel Chappuis
7071213617 Optimizations and small modifications 2020-10-04 16:08:12 +02:00
Daniel Chappuis
85103f7027 Small optimizations 2020-10-02 21:26:14 +02:00
Daniel Chappuis
d4be363e7c Optimization of face vs face clipping in SAT algorithm 2020-09-30 00:22:16 +02:00
Daniel Chappuis
21f9b39bc4 Small optimizations 2020-09-26 15:07:20 +02:00
Daniel Chappuis
71f7980fdf Log an error when convex mesh is created with duplicated vertices and add in user manual that this is not supported 2020-09-21 13:59:23 +02:00
Daniel Chappuis
e7b951b8e4 Refactor the mathematics_functions.h file 2020-09-08 19:03:22 +02:00
Daniel Chappuis
b55626df67 Cache the size of lists before loops 2020-09-06 18:42:05 +02:00
Daniel Chappuis
cd4bc7573f Rename the List class into Array 2020-09-05 15:06:51 +02:00
Daniel Chappuis
70d4aed3c1 Reduce the number of calls to List::reserve() 2020-08-30 08:32:49 +02:00
Daniel Chappuis
2b362b5098 Use uint32 type for size/capacity of List 2020-08-30 00:00:47 +02:00
Daniel Chappuis
a1e0e0aa94 Refactor OverlappingPairs 2020-08-11 18:14:32 +02:00
Daniel Chappuis
05e3b00689 Remove mIsActive variable from OverlappingPairs 2020-08-06 16:00:50 +02:00
Daniel Chappuis
0126677808 Fix issue 2020-07-29 00:24:52 +02:00
Daniel Chappuis
7f219dd99c More materials into the ColliderComponents and more optimizations 2020-07-28 23:35:11 +02:00
Daniel Chappuis
aa6b228e10 Optimizations 2020-07-28 23:34:25 +02:00
Daniel Chappuis
fd09fcf660 Add force inline macro 2020-07-26 20:47:23 +02:00
Daniel Chappuis
92884e2486 Working on NarrowPhaseInfoBatch optimizations 2020-07-26 16:55:07 +02:00
Daniel Chappuis
0032fef473 Working on optimizations in contacts creation 2020-07-18 17:03:44 +02:00
Daniel Chappuis
4283e3f408 Fix issue in SAT with edge-edge contact (wrong contact normal) and favor face contacts over edge-edge contacts in polyhedron vs polyhedron collision in SAT algorithm for better stability 2020-06-27 23:48:19 +02:00
Daniel Chappuis
6d75edd782 Merge branch 'develop' into 'master' 2020-05-29 00:03:44 +02:00
Daniel Chappuis
09dc35f635 Update dates and version numbers in files 2020-05-27 16:15:35 +02:00
Daniel Chappuis
4351081189 Make smooth triangle normal computation more robust 2020-05-26 18:22:17 +02:00
Daniel Chappuis
fa4eb297bf Add logs, remove warnings, ... 2020-05-25 21:40:44 +02:00
Daniel Chappuis
cfdab52573 Improve Doxygen API Reference documentation 2020-05-25 00:27:13 +02:00
Daniel Chappuis
39bbd6ec6d Refactor CMakeLists.txt files to use more modern CMAKE 2020-05-11 12:38:59 +02:00
Daniel Chappuis
3df602edfa Refactor the way to create a logger and a profiler 2020-05-11 11:13:26 +02:00
Daniel Chappuis
2efe9d65da Fix issue with overlap callback 2020-04-27 15:54:57 +02:00
Daniel Chappuis
e03ee08462 Rename Logger class to DefaultLogger and create abstract Logger class 2020-04-26 18:41:59 +02:00
Daniel Chappuis
dcd71ef103 Improve EventListener: add onTrigger() method, add event types, add triggers, ... 2020-04-18 20:43:13 +02:00
Daniel Chappuis
a190bba8c0 Refactor where the headers are store for better installation of the library 2020-03-18 07:28:34 +01:00
Daniel Chappuis
7dde393fa5 Use Vector3 instead of Matrix3x3 for the local inertia tensor of a rigid body 2020-03-10 07:23:51 +01:00
Daniel Chappuis
cda466f9da Refactor the way to set/update the center of mass, mass and inertia tensor of a rigid body 2020-03-01 16:39:16 +01:00
Daniel Chappuis
28560d034e Add methods for the user to retrieve Colliders, CollisionBodies and RigidBodies 2020-02-17 17:36:44 +01:00
Daniel Chappuis
0ec26f5184 Compute the fat AABB by adding a percentage of the size of the initial AABB instead of using a constant offset. Do not use linear displacement anymore in inflate the AABB in direction of the motion in the broad-phase 2020-02-14 17:08:02 +01:00
Daniel Chappuis
7477460e4f Make possible to resize the collision shapes after their creation 2020-02-11 21:56:42 +01:00
Daniel Chappuis
9d776e32dc Make possible to change the size of the collision shapes after their creation 2020-02-06 07:21:13 +01:00
Daniel Chappuis
c5873dbc6b The Material is now part of the Collider instead of the RigidBody, fixes compilation errors with Logger and Profiler. 2020-02-01 13:41:30 +01:00
Daniel Chappuis
d36edcdb6e Rename DynamicsWorld class to PhysicsWorld 2020-01-27 17:46:00 +01:00
Daniel Chappuis
b0fde22678 Rename ProxyShape to Collider 2020-01-20 21:22:46 +01:00