aboutsummaryrefslogtreecommitdiff
path: root/src/data/arena.rs
diff options
context:
space:
mode:
authorSébastien Crozet <developer@crozet.re>2022-01-16 16:40:59 +0100
committerSébastien Crozet <developer@crozet.re>2022-01-16 16:52:40 +0100
commit0703e5527fd95d86bb6621e61dbcb1a6e7f9329a (patch)
tree806e7d950015875ebfcca5520784aea6e7c5ae10 /src/data/arena.rs
parent4454a845e98b990abf3929ca46b59d0fca5a18ec (diff)
downloadrapier-0703e5527fd95d86bb6621e61dbcb1a6e7f9329a.tar.gz
rapier-0703e5527fd95d86bb6621e61dbcb1a6e7f9329a.tar.bz2
rapier-0703e5527fd95d86bb6621e61dbcb1a6e7f9329a.zip
Fix some solver issues
- Fix the wrong codepath taken by the solver for contacts involving a collider without parent. - Properly adress the non-linear treatment of the friction direction - Simplify the sleeping strategy - Add an impulse resolution multiplier
Diffstat (limited to 'src/data/arena.rs')
-rw-r--r--src/data/arena.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/data/arena.rs b/src/data/arena.rs
index c7cbf07..b14737e 100644
--- a/src/data/arena.rs
+++ b/src/data/arena.rs
@@ -70,11 +70,8 @@ impl Index {
///
/// Providing arbitrary values will lead to malformed indices and ultimately
/// panics.
- pub fn from_raw_parts(a: u32, b: u32) -> Index {
- Index {
- index: a,
- generation: b,
- }
+ pub fn from_raw_parts(index: u32, generation: u32) -> Index {
+ Index { index, generation }
}
/// Convert this `Index` into its raw parts.