Commit Graph

266 Commits

Author SHA1 Message Date
Sébastien Crozet
3d112287b9 feat: add a BroadPhaseTrait for allowing custom broad-phases 2024-03-23 15:17:47 +01:00
Sébastien Crozet
cfb2c2c93e feat!: rename BroadPhase to BroadPhaseMultiSap 2024-03-23 15:17:47 +01:00
Sébastien Crozet
cd9fb8342d feat: add RigidBody::copy_from and Collider::copy_from
Closes #595
2024-03-23 14:19:52 +01:00
Sébastien Crozet
da92e5c283 Fix clippy and enable clippy on CI 2024-01-27 17:13:08 +01:00
Sébastien Crozet
46b244167c feat!: rename narrow-phase methods for more clarity.
Renames `contacts_with` to`contact_pairs_with`; and `intersections_with` to `intersection_pairs_with`.
2024-01-24 22:51:30 +01:00
Sébastien Crozet
5bf3983894 feat: re-export BoundingVolume, RayCast, PointQuery, PointQueryWithlocation from parry. 2024-01-24 22:50:07 +01:00
Sébastien Crozet
9b87f06a85 feat: implement new "small-steps" solver + joint improvements 2024-01-21 21:02:27 +01:00
Sébastien Crozet
bc287a9895 cargo fmt 2023-10-29 18:00:52 +01:00
Rafal Harabien
94829fd852 Fix enabling disabled collider
If collider was enabled and no other attributes were changed its collisions
were not detected. This was the result of `needs_broad_phase_update` function
not handling case of changed enabled status.
Fixes dimforge/bevy_rapier#435
2023-10-18 15:08:41 +02:00
Sébastien Crozet
50b838381b Merge pull request #520 from waywardmonkeys/doc-fixes
docs: Minor fixes.
2023-09-09 12:56:46 +02:00
Bruce Mitchener
b9b5b58f61 docs: Expand "wrt" to "with respect to".
This makes things more clear as this abbreviation isn't known
to everyone.

While the trailing period is common in French, it isn't in English
(one might use "w.r.t.").

Fixes #498.
2023-08-28 11:13:27 +07:00
Bruce Mitchener
4c2d18a0cd docs: Minor fixes. 2023-08-28 11:05:45 +07:00
MrGunflame
6d72192955 Fix doc-links for ColliderBuilder and RigidBodyBuilder 2023-03-30 17:15:43 +02:00
Sébastien Crozet
0207f8cf96 Properly take initial sleeping state set by the user when creating a rigid-body 2022-12-11 17:47:42 +01:00
Sébastien Crozet
683baf6bf7 Allow the PhysicsPipeline and CollisionPipeline to update the QueryPipeline incrementally 2022-12-11 15:20:33 +01:00
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