Commit Graph

251 Commits

Author SHA1 Message Date
Sébastien Crozet
46d976d97b Allow disabling colliders, rigid-bodies and impulse joints 2022-12-11 15:20:33 +01:00
Sébastien Crozet
34b7ae32fd Add internal edges debug examples. 2022-10-30 16:44:33 +01:00
Sébastien Crozet
b5b3431a63 Switch to the published parry 0.11 2022-10-30 13:43:52 +01:00
Sébastien Crozet
8fd3e61c92 Implement conversion between u32 and Group 2022-10-25 18:11:26 +02:00
Tristan Guichaoua
911493e6d8 remove #[allow(missing_docs)] 2022-08-13 14:35:11 +02:00
Tristan Guichaoua
6c2eca72a5 impl Group 2022-08-13 14:31:27 +02:00
Sébastien Crozet
68d250f0ad Merge pull request #380 from dimforge/set-rotation
Make Collider::set_rotation and RigidBody::set_rotation take a rotation instead of an axis-angle.
2022-08-09 10:06:20 +02:00
Sébastien Crozet
a19c6131ff Make Collider::set_rotation and RigidBody::set_rotation take a rotation instead of an axis-angle. 2022-08-09 09:26:12 +02:00
Timo Kösters
f55925685d docs: fix typo 2022-08-04 11:42:02 +02:00
Nash
e4a8d2e18c Implement serde traits for CollisionEvents when serde-serialize feature is enabled 2022-07-14 00:14:10 -04:00
Sébastien Crozet
e20f4a9952 cargo fmt 2022-07-07 11:06:25 +02:00
Sébastien Crozet
73788a21ab Add ActiveEvents::CONTACT_FORCE_EVENTS for consistency with ActiveEvents::COLLISION_EVENTS 2022-07-07 11:01:39 +02:00
Sébastien Crozet
7831ebfc31 Add methods to read the mass or volume of a collider. 2022-07-05 15:15:17 +02:00
Sébastien Crozet
ba081fb6f5 Improve the API for initializing/setting mass-properties 2022-07-05 14:59:14 +02:00
Sébastien Crozet
145ab3013e Fix the max_force_direction magnitude 2022-07-04 16:53:38 +02:00
Sébastien Crozet
158308ad71 Add hepler function for building a contact force event from a contact pair 2022-07-04 15:04:06 +02:00
Sébastien Crozet
5063f3bb4f Add the ability to disable contacts between two rigid-bodies attached by joints 2022-07-03 13:55:41 +02:00
Sébastien Crozet
32e2ff6c96 Name the contact force events ContactForceEvent instead of CollisionForceEvent 2022-07-01 17:45:11 +02:00
Sébastien Crozet
b9f76e2fda Warning fixes 2022-07-01 12:00:32 +02:00
Sébastien Crozet
c9d8277377 Add contact force events generated above a user-defined threshold 2022-07-01 12:00:32 +02:00
Sébastien Crozet
2e19eb2e54 Fix warning 2022-06-24 12:11:14 +02:00
Sébastien Crozet
be5b6813a9 Broad-phase: discard NAN/Inf AABBs. 2022-06-24 11:56:28 +02:00
Sébastien Crozet
9e431fb392 Address rounding errors resulting in AABBProxy being added to a disjoint region. 2022-06-24 11:56:12 +02:00
Sébastien Crozet
66f1d6fef7 Fix contact event generation for shapes generating mulitple contact manifolds. 2022-06-21 09:28:41 +02:00
Sébastien Crozet
362b9f2f8b Fix incorrect sensor events being generated after collider removal
Fix #330
2022-05-31 16:27:53 +02:00
Sébastien Crozet
3508ab4356 Rename STATIC -> FIXED in the ActiveCollisionTypes flags 2022-05-30 17:49:29 +02:00
Sébastien Crozet
8d15ceab2a Fix bug where the narrow-phase would not recompute contacts after a collider change 2022-04-29 19:15:24 +02:00
Sébastien Crozet
65824e74f3 Add comments for the debug-renderer 2022-04-28 17:30:35 +02:00
Sébastien Crozet
ae40f4cd7e Add collision event flags 2022-04-28 13:03:14 +02:00
Sébastien Crozet
9237bfd530 Remove the default-sets feature 2022-04-20 19:02:49 +02:00
Sébastien Crozet
f108520b5a Finalize refactoring 2022-04-20 19:02:49 +02:00
Sébastien Crozet
2b1374c596 First round deleting the component sets. 2022-04-20 19:02:49 +02:00
Sébastien Crozet
ee679427cd Fix mass-properties update after collider change 2022-04-20 17:11:06 +02:00
Nolan Darilek
775c45e9ff Include broken values in assertion failure message. 2022-04-19 12:34:28 +02:00
Sébastien Crozet
7efcff615e Fix broad-phase becomming potentially invalid after collision group change 2022-03-27 19:28:42 +02:00
Sébastien Crozet
0ac35e12a7 Update tests 2022-03-20 21:49:16 +01:00
Sébastien Crozet
d38740369c Emit collision stopped events after a collider is removed. 2022-03-20 21:49:16 +01:00
Sébastien Crozet
063c638ec5 Combine contact events and intersection events into a single event type and flags 2022-03-20 21:49:16 +01:00
Sébastien Crozet
a9e3441ecd Rename rigid-body static to fixed 2022-03-20 21:49:16 +01:00
Sébastien Crozet
db6a8c526d Fix warnings and add comments. 2022-03-20 21:49:16 +01:00
Sébastien Crozet
891c08177d Rebase on master branch 2022-03-20 21:49:16 +01:00
Sébastien Crozet
815de4beff Complete the parallel solver fix 2022-03-20 21:49:16 +01:00
Sébastien Crozet
28cc19d104 Allow removing a rigid-body without auto-removing attached colliders 2022-03-20 21:49:16 +01:00
Sébastien Crozet
fb20d72ee2 Joint API and joint motors improvements 2022-03-20 21:49:16 +01:00
Sébastien Crozet
0c7ebae1aa Run cargo fmt 2022-01-23 18:04:24 +01:00
zhguchev
536122e080 add defaults for the several structs 2022-01-23 18:01:50 +01:00
Sébastien Crozet
1308db8994 Merge pull request #267 from dimforge/multibody
Implement multibody joints, and new velocity-based constraints solver
2022-01-02 18:05:50 +01:00
Sébastien Crozet
9f9d329360 Fix tests 2022-01-02 17:43:38 +01:00
Sébastien Crozet
90edb4b532 More warning fixes + temporarily disable -D warning in the CI 2022-01-02 17:29:34 +01:00
Sébastien Crozet
ae27e1c331 Run cargo fmt 2022-01-02 17:22:37 +01:00