You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I'm new to rapier and tried to start with a simple example where I add a single SpringJoint between two bodies. However the application immediately panics.
let joint = SpringJointBuilder::new(1.0,1.0,1.0).build();
commands
.entity(entity_a).insert(ImpulseJoint::new(entity_b, joint));
The panic
thread 'Compute Task Pool (0)' panicked at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rapier2d-0.18.0/src/dynamics/solver/joint_constraint/joint_velocity_constraint.rs:335:31:
index out of bounds: the len is 4 but the index is 18446744073709551615
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Encountered a panic in system `bevy_rapier2d::plugin::systems::step_simulation<()>`!
Encountered a panic in system `bevy_app::main_schedule::Main::run_main`!
Am I doing something wrong?
The text was updated successfully, but these errors were encountered:
In case anyone else runs into the same issue before the fix is released: I could get it working by overriding the transitive dependency in my Cargo.toml like this:
Hi. I'm new to rapier and tried to start with a simple example where I add a single SpringJoint between two bodies. However the application immediately panics.
How I set up the bodies:
How I tried to add the joint:
The panic
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: