Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rapier context component #22

Draft
wants to merge 51 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
d4ff57e
working rapierContext as component, but not ideal API.
Vrixyz Jun 25, 2024
3cb7676
systemparam exploration
Vrixyz Jun 25, 2024
a01395e
RapierContextEntityLink to know which RapierContext is referred to
Vrixyz Jun 25, 2024
4e7c36c
more rapierContext conf + broken events -> added a test which should …
Vrixyz Jun 25, 2024
4952ea5
fix events test
Vrixyz Jun 26, 2024
7a4ba5e
better support for multi world
Vrixyz Jun 26, 2024
24fd036
multiple worlds working + example
Vrixyz Jun 26, 2024
f900dac
progress multi world with change
Vrixyz Jun 27, 2024
d171fe4
cargo clippy + pr feedbacks
Vrixyz Jul 1, 2024
8dd49ee
less unwraps
Vrixyz Jul 2, 2024
2b262ea
ci without debug symbols
Vrixyz Jul 2, 2024
f849cd2
more tests + logs + better changelog
Vrixyz Jul 2, 2024
df3578e
more error logs in case of no rapier context
Vrixyz Jul 2, 2024
09d6f9d
Update dependencies to rapier 0.21 (#547)
Vrixyz Jul 3, 2024
9abe4c3
Added 'realistic' test for events (#544)
Vrixyz Jul 4, 2024
ac16f38
Merge remote-tracking branch 'upstream' into RapierContext_Component
Vrixyz Jul 4, 2024
941b52e
fix conflict
Vrixyz Jul 4, 2024
5669a8c
fix unwrap
Vrixyz Jul 4, 2024
0b9ca86
fix warning
Vrixyz Jul 4, 2024
f97027d
update dependencies to bevy 0.14 (#556)
Vrixyz Jul 5, 2024
f4643ef
address pr feedback
Vrixyz Jul 5, 2024
ecdacfd
Fix some cargo doc warnings + add cargo doc ci (#557)
Vrixyz Jul 7, 2024
84c776e
rapier 0.20 feature: `RevoluteJoint::angle` + more detailed joints en…
Vrixyz Jul 7, 2024
f17bd5b
chore: Release prep for 0.27.0 (#558)
Vrixyz Jul 7, 2024
f8b296a
address pr feedback
Vrixyz Jul 8, 2024
0e46610
Merge branch 'master' into RapierContext_Component
Vrixyz Jul 8, 2024
75c2195
fixed compilation
Vrixyz Jul 8, 2024
ccd2be7
fix doc comment
Vrixyz Jul 8, 2024
9142888
fixed joints3 example
Vrixyz Jul 8, 2024
ba0cd76
experiment on stepping to test system ordering and consistent ecs state
Vrixyz Jul 9, 2024
6d10fe6
fix compilation + warning
Vrixyz Jul 10, 2024
d0b07a0
better error handling when rapier context is missing
Vrixyz Jul 10, 2024
2676c35
add a name for rapier context entity
Vrixyz Jul 10, 2024
d190a1c
Add `TriMeshFlags` to `ComputedColliderShape::TriMesh` (#559)
DiSaber Jul 15, 2024
188dcc2
added initial benchmarks, similar to bevy_xpbd (#551)
Vrixyz Jul 18, 2024
3c98610
testbed: allow to select example (#565)
Vrixyz Jul 18, 2024
c6c9bbc
A few doc-link fixes (#562)
Vrixyz Jul 22, 2024
59477d9
Fix a crash when removing colliders in `TimestepMode::Interpolated` …
Vrixyz Jul 23, 2024
40be1f1
Merge branch 'master' into RapierContext_Component
Vrixyz Jul 23, 2024
deb0a06
rename an init function
Vrixyz Jul 23, 2024
cf165bd
apply pr suggestion
Vrixyz Jul 23, 2024
c539f29
update to rapier 0.22 (#568)
Vrixyz Jul 26, 2024
c556052
fix unexpected cfg warning (#573)
Vrixyz Jul 29, 2024
c2bed72
Per entity/collider debug rendering (#278)
barsoosayque Aug 2, 2024
aeab8c9
apply PR suggestions
Vrixyz Aug 12, 2024
07eefbb
Merge branch 'master' into RapierContext_Component
Vrixyz Aug 12, 2024
4cccde1
rename rapier context system params
Vrixyz Aug 12, 2024
cbfe138
fix clippy (+ random typo)
Vrixyz Aug 12, 2024
5dc5b2d
cargo fmt
Vrixyz Aug 12, 2024
030dc61
Fix typos. (#580)
waywardmonkeys Aug 26, 2024
d0961d0
Merge remote-tracking branch 'upstream' into RapierContext_Component
Vrixyz Sep 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update to rapier 0.22 (dimforge#568)
Vrixyz authored Jul 26, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit c539f2916451de2f624f5356e4430e39b98007d7
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,11 @@

## Unreleased

### Modified

- Update from rapier `0.21` to rapier `0.22`,
see [rapier's changelog](https://github.com/dimforge/rapier/blob/master/CHANGELOG.md).

### Fix

- Fix a crash when using `TimestepMode::Interpolated` and removing colliders
2 changes: 1 addition & 1 deletion bevy_rapier2d/Cargo.toml
Original file line number Diff line number Diff line change
@@ -46,7 +46,7 @@ async-collider = ["bevy/bevy_asset", "bevy/bevy_scene"]
[dependencies]
bevy = { version = "0.14", default-features = false }
nalgebra = { version = "0.33", features = ["convert-glam027"] }
rapier2d = "0.21"
rapier2d = "0.22"
bitflags = "2.4"
log = "0.4"
serde = { version = "1", features = ["derive"], optional = true }
2 changes: 1 addition & 1 deletion bevy_rapier3d/Cargo.toml
Original file line number Diff line number Diff line change
@@ -47,7 +47,7 @@ async-collider = ["bevy/bevy_asset", "bevy/bevy_scene"]
[dependencies]
bevy = { version = "0.14", default-features = false }
nalgebra = { version = "0.33", features = ["convert-glam027"] }
rapier3d = "0.21"
rapier3d = "0.22"
bitflags = "2.4"
log = "0.4"
serde = { version = "1", features = ["derive"], optional = true }
6 changes: 3 additions & 3 deletions bevy_rapier_benches3d/Cargo.toml
Original file line number Diff line number Diff line change
@@ -9,6 +9,6 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
rapier3d = { features = ["profiler"], version = "0.21" }
bevy_rapier3d = { version = "0.27.0-rc.1", path = "../bevy_rapier3d" }
bevy = { version = "0.14.0-rc.3", default-features = false }
rapier3d = { features = ["profiler"], version = "0.22" }
bevy_rapier3d = { version = "0.27", path = "../bevy_rapier3d" }
bevy = { version = "0.14", default-features = false }
2 changes: 2 additions & 0 deletions src/geometry/shape_views/triangle.rs
Original file line number Diff line number Diff line change
@@ -37,6 +37,7 @@ macro_rules! impl_ref_methods(
///
/// The normal points such that it is collinear to `AB × AC` (where `×` denotes the cross
/// product).
#[cfg(feature = "dim3")]
#[inline]
pub fn normal(&self) -> Option<Vect> {
self.raw.normal().map(|n| (*n).into())
@@ -46,6 +47,7 @@ macro_rules! impl_ref_methods(
///
/// The vector points such that it is collinear to `AB × AC` (where `×` denotes the cross
/// product).
#[cfg(feature = "dim3")]
#[inline]
pub fn scaled_normal(&self) -> Vect {
self.raw.scaled_normal().into()