Commit Graph

175 Commits

Author SHA1 Message Date
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
Daniel Chappuis
6f9adc3a32 Move attributes from RigidBodyComponents to DynamicsComponents 2019-07-19 21:57:17 +02:00
Daniel Chappuis
466455d15a Move attribute in RigidBodyComponents 2019-07-19 20:51:43 +02:00
Daniel Chappuis
ca80d95d84 Add RigidBodyComponents class 2019-07-16 07:15:13 +02:00
Daniel Chappuis
569964e365 Remove Body class 2019-07-15 17:38:20 +02:00
Daniel Chappuis
16f564edea Move Body attributes to BodyComponents 2019-07-08 17:41:10 +02:00
Daniel Chappuis
236a855c8d Remove Body::mId attribute 2019-07-04 20:24:09 +02:00
Daniel Chappuis
f9fa2a227c Changes for release of version 0.7.1 2019-07-01 08:42:27 +02:00
Daniel Chappuis
eccc4faa6d Disable previous axis clipping (temporal coherence) in SAT algorithm for testCollision() methods 2019-06-27 07:12:17 +02:00
Daniel Chappuis
74b442077f Working on testCollision() and testOverlap() methods 2019-06-25 23:26:06 +02:00
Daniel Chappuis
669e74d528 Clean code 2019-05-21 20:40:11 +02:00
Daniel Chappuis
a11d884ce1 Move isGravityEnabled and inertia tensors in DynamicsComponents 2019-05-20 07:12:09 +02:00
Daniel Chappuis
ed4f76f7c6 Add initMass and massInverse to DynamicsComponents 2019-05-18 21:52:51 +02:00
Daniel Chappuis
29c8587c85 Add linear/angular damping into DynamicsComponents 2019-05-18 14:00:25 +02:00
Daniel Chappuis
aa4935f396 Add external force/torque in DynamicsComponents 2019-05-17 17:39:30 +02:00
Daniel Chappuis
9afedae1a7 Use DynamicsComponents for constrained linear/angular velocities in solvers 2019-05-16 17:46:26 +02:00
Daniel Chappuis
ac0e620f02 Remove old code 2019-05-12 14:26:55 +02:00
Daniel Chappuis
e672c0d617 Refactor contacts and islands 2019-05-10 17:37:11 +02:00
Daniel Chappuis
d8e9f15339 Simplify broad-phase 2019-03-31 00:48:46 +01:00
Daniel Chappuis
d0fbab77ce Simplify broad-phase 2019-03-26 22:57:38 +01:00
Daniel Chappuis
fe81c3fd6e Add DynamicsComponents class 2019-03-21 07:29:59 +01:00
Daniel Chappuis
1d6155aa6c Remove code to update proxy-shape broad-phase state from proxy-shape, move it to broad-phase system 2019-03-17 22:50:10 +01:00
Daniel Chappuis
ae076ad815 Handle disabled components 2019-03-16 08:40:50 +01:00
Daniel Chappuis
d02b25d32a The proxy-shapes are now entities 2019-03-15 17:27:11 +01:00
Daniel Chappuis
061469a539 Check that proxy-shape is part of broad-phase before updating it in RigidBody 2019-03-11 11:12:42 +01:00
Daniel Chappuis
c5c7e81260 Add fields to ProxyShapesComponents 2019-01-14 18:35:51 +01:00
Daniel Chappuis
7d8f043cdb Replacing ProxyShape data by corresponding component data 2019-01-12 18:56:55 +01:00