Commit Graph

201 Commits

Author SHA1 Message Date
Daniel Chappuis
1273f3a83c Change the function used for the linear and angular damping of the rigid bodies 2021-09-09 00:05:45 +02:00
Daniel Chappuis
90741a69bb Replace some uint declarations to uint32 2021-09-01 09:14:38 +02:00
Daniel Chappuis
f65cc68915 Replace some uint declarations to uint32 2021-08-25 20:48:05 +02:00
Daniel Chappuis
c237cecf68 Fix warnings 2021-08-18 10:35:26 +02:00
jingqi
53acd891dc Fix typo 2021-08-06 12:13:11 +08:00
Daniel Chappuis
e8439edd96 Add unit tests for the RigidBody class and refactor methods to apply forces and torques to rigid bodies 2021-07-23 16:02:47 +02:00
Daniel Chappuis
cc9da45dc3 Add and rename methods to apply forces to a RigidBody 2021-07-16 17:01:58 +02:00
Daniel Chappuis
b18e617c76 Fix issue with update of inverse mass/inertia of a static body 2021-01-27 21:49:31 +01:00
Daniel Chappuis
a3ceafff07 Make possible to lock the linear/angular axis of a RigidBody 2021-01-15 23:47:29 +01:00
Daniel Chappuis
916cefa96d Optimization of joints 2020-10-12 23:01:57 +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
2b362b5098 Use uint32 type for size/capacity of List 2020-08-30 00:00:47 +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
7f219dd99c More materials into the ColliderComponents and more optimizations 2020-07-28 23:35:11 +02:00
Daniel Chappuis
a871bfdd6a More optimizations 2020-07-20 00:33:50 +02:00
Daniel Chappuis
bbd9182f7f Improve code documentation inside RigidBody class 2020-06-16 23:17:41 +02:00
Daniel Chappuis
2751bc5728 Add RigidBody::resetForce() and RigidBody::resetTorque() methods 2020-06-16 22:50:12 +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
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
ab86620412 Small modifications 2020-05-24 16:52:44 +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
e04565fb48 Rename RigidBody::applyForce() to RigidBody::applyForceAtWorldPosition() and add RigidBody::applyForceAtLocalPosition() method 2020-05-09 00:09:38 +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
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
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
815182aae9 Merge ecs into develop and fix conflicts 2019-11-27 22:14:29 +01:00
Daniel Chappuis
d894a40d2e Working on middle-phase collision detection 2019-11-19 18:35:22 +01:00
Daniel Chappuis
44e07e0bd9 Working on making middle-phase collision detection faster 2019-11-09 23:55:54 +01:00
Daniel Chappuis
2c2b75def7 Move local-to-world transform of ProxyShape into the ProxyShapeComponents 2019-10-15 20:29:22 +02:00
Daniel Chappuis
59cdc6b8f8 Take care of TODOs 2019-10-10 07:53:25 +02:00
Daniel Chappuis
d491665332 Add SolveSliderJointSystem class 2019-10-07 20:50:37 +02:00
Daniel Chappuis
afb34b4355 Add SolveHingeJointSystem class 2019-10-05 17:45:35 +02:00
Daniel Chappuis
f29810334e Working on JointComponents 2019-09-24 17:45:43 +02:00
Daniel Chappuis
0230b74462 Working on joints components 2019-08-19 07:23:19 +02:00
Daniel Chappuis
2144b8e571 Add JointComponents class 2019-08-15 18:12:46 +02:00
Daniel Chappuis
df04be0e6d Rename CollisionDetection class to CollisionDetectionSystem 2019-08-09 07:13:15 +02:00
Daniel Chappuis
9b38fc1626 Add DynamicsSystem class 2019-08-08 17:45:22 +02:00
Daniel Chappuis
db995ea52c Do not use callbacks for middle-phase collision detection 2019-08-04 23:24:48 +02:00
Daniel Chappuis
3d09a28dd1 Remove DynamicsComponents 2019-07-21 22:36:30 +02:00