Commit Graph

352 Commits

Author SHA1 Message Date
Daniel Chappuis
4c0e629e9b Use C++11 std::chrono library to deal with time instead of old code 2021-02-22 21:08:55 +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
fcf7def577 Small optimizations 2020-10-14 20:41:05 +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
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
7774b6f0cd Merge master into optimization and fix conflicts 2020-09-02 22:53:21 +02:00
Daniel Chappuis
98ba2f10e6 Fix issue with contact manifolds order in islands creation process 2020-09-02 21:59:19 +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
de6630a03d Refactoring and optimization of List and Set containers 2020-08-28 23:10:19 +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
eeb5b07f35 Remove rolling restistance constraint from contact solver. Angular damping has to be used instead 2020-07-29 22:49:19 +02:00
Daniel Chappuis
aa6b228e10 Optimizations 2020-07-28 23:34:25 +02:00
Daniel Chappuis
a871bfdd6a More optimizations 2020-07-20 00:33:50 +02:00
Daniel Chappuis
0032fef473 Working on optimizations in contacts creation 2020-07-18 17:03:44 +02:00
Daniel Chappuis
b410b26e23 Fix issues in PhysicsWorld::createIslands() method and add more optimization in CollisionDetectionSystem::computeNarrowPhase() method 2020-07-14 22:35:03 +02:00
Daniel Chappuis
fa05e1561e Use const parameter in PhysicsWorld::setGravity() method 2020-07-07 18:27:01 +02:00
Daniel Chappuis
98ac47cbad Optimization of the islands computation 2020-07-07 18:21:41 +02:00
Daniel Chappuis
5cf8cb7445 Make PhysicsWorld::createIslands() method faster 2020-07-02 23:44:27 +02:00
Daniel Chappuis
a855a81d04 Fix issue with assert in PhysicsWorld destructor 2020-06-14 23:18:13 +02:00
Daniel Chappuis
875064c851 Check that the initial transforms when creating a body or a collider are valid 2020-05-27 23:09:23 +02:00
Daniel Chappuis
09dc35f635 Update dates and version numbers in files 2020-05-27 16:15:35 +02:00
Daniel Chappuis
834de3254b Add again Timer.h and Timer.cpp 2020-05-25 21:54:36 +02:00
Daniel Chappuis
fa4eb297bf Add logs, remove warnings, ... 2020-05-25 21:40:44 +02:00
Daniel Chappuis
8893f22e70 Remove the Timer class which is not needed anymore 2020-05-25 10:55:04 +02:00
Daniel Chappuis
9d35d5d7d2 Log errors in PhysicsCommon when destroying a collision shape that is still used by some colliders 2020-05-25 10:48:25 +02:00
Daniel Chappuis
a81a2f5393 Improve Doxygen API Reference documentation 2020-05-25 10:36:36 +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
56077bba6b Working on debug renderer 2020-05-06 00:34:56 +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
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
7477460e4f Make possible to resize the collision shapes after their creation 2020-02-11 21:56:42 +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
Daniel Chappuis
eb270af309 Fix issue and make sure we use the correct memory allocators 2020-01-15 20:18:11 +01:00
Daniel Chappuis
77940a43f7 Add new memory allocator HeapAllocator 2020-01-13 17:02:59 +01:00
Daniel Chappuis
45b02abaec Add PhysicsCommon class and use it as a factory for other library objects and add pile demo in testbed application 2019-12-12 18:50:18 +01:00
Daniel Chappuis
815182aae9 Merge ecs into develop and fix conflicts 2019-11-27 22:14:29 +01:00
Daniel Chappuis
b94fbf7874 Some optimizations and fix issues in collision detection 2019-11-25 21:22:25 +01:00
Daniel Chappuis
acb5e0e51e Remove TODO 2019-11-25 17:33:46 +01:00
Daniel Chappuis
58df6cdaff Optimizations 2019-11-22 21:31:51 +01:00
Daniel Chappuis
d894a40d2e Working on middle-phase collision detection 2019-11-19 18:35:22 +01:00
Daniel Chappuis
7dcc86d746 Working on middle-phase collision detection 2019-11-18 07:29:04 +01:00