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
Sébastien Crozet
f74b8401ad
Implement multibody joints and the new solver
2022-01-02 16:58:36 +01:00
Jakub Arnold
64e5a98833
Minor documentation fixes
2021-12-31 10:04:29 +01:00
Sébastien Crozet
b45d4b5ac2
Track the change of effective dominance of a rigid-body.
2021-10-26 15:38:54 +02:00
Benjamin Saunders
601955b4ee
Remove duplicate test
2021-10-24 13:36:29 +02:00
Jamen Marz
7aa94e994f
Impl Default for a few structs
2021-09-25 13:50:12 +02:00
Sébastien Crozet
d858ae4c4e
Make the 2D add-remove demo more intereting.
2021-09-12 01:49:09 -07:00
Sébastien Crozet
5e133aac92
Fix broad-phase bug that could result in missed collision pairs when an object leaves then re-enter a region
2021-09-12 01:49:09 -07:00
Kane Rogers
3f223aaf9e
Fix bug with colliders without rigid bodies
...
- When `NarrowPhase` adds a collision pair, it checks to make sure that they don't have the same parent
- In the case where the colliders have no parents (eg. they are not attached to a `RigidBody`) this yields a false positive.
- The fix is to ensure that colliders have a parent before ignoring the pair.
2021-08-26 10:29:24 +02:00
Sébastien Crozet
37a90a5409
Add missing comments.
2021-07-30 11:09:15 +02:00
Crozet Sébastien
729e510c00
Make BroadPhasePairEvent and ColliderPair public.
...
Otherewise it is impossible to use BroadPhase::update properly.
2021-07-30 11:09:15 +02:00
Benjamin Saunders
92b8580761
Update intersection graph regardless of active_events
2021-07-14 20:16:19 +02:00
Crozet Sébastien
8e0aa2ac79
Add methods to set the translation or rotation wrt. a collider and its parent.
2021-07-12 10:10:59 +02:00
Waridley
9233a855f0
impl more traits for components
2021-07-11 18:22:39 +02:00
Waridley
62d6b0651b
Derive Clone for IslandManager
...
also fix typo
2021-06-09 11:07:37 +02:00
Crozet Sébastien
ff6c75f3bd
Fix collider removal from narrow-phase when the same collider is listed twice.
2021-06-08 18:23:40 +02:00
Crozet Sébastien
fdd370e51a
Release v0.9.0
2021-06-02 18:01:23 +02:00
Sébastien Crozet
c7b876e2f7
Merge pull request #173 from DasEtwas/must-use-pub
...
Add #[must_use] to builders, expose more fields
2021-06-02 17:37:13 +02:00
Sébastien Crozet
ad2fcf755a
Merge pull request #176 from sdfgeoff/add_collider_shared_shape_method
...
Created a method to retrieve the SharedShape from a collider
2021-06-02 17:32:56 +02:00
Crozet Sébastien
bde6657287
Fix tests and wasm build.
2021-06-02 16:22:40 +02:00
Crozet Sébastien
7153eb7779
Add ActiveCollisionTypes to easily enable collision-detection between two non-static rigid-body.
2021-06-01 17:59:07 +02:00
Crozet Sébastien
dbb3c8f43b
CCD: take collision groups into account
2021-06-01 14:56:24 +02:00