dimforge / dimforge/bevy_rapier

Adding a NaN force to a rigidbody produces a cryptic error message

Open
#115 0 comments 1 reaction 0 assignees View on GitHub
A-Integration C-Enhancement D-Easy P-Low S-not-started
Dominant language
Rust
Stars
1.6k
Forks
282
PR merge metrics
No merged PRs in 30d

Description

When passing a `NaN` vector to `RigidBodyForcesComponent::force`, the resulting panic has an unclear message.
Example:
```
thread 'Compute Task Pool (1)' panicked at 'assertion failed: proxy.aabb.maxs[dim] >= self.min_bound', C:\Users\USER\.cargo\registry\src\github.com-1ecc6299db9ec823\rapier3d-0.12.0-alpha.1\src\geometry\broad_phase_multi_sap\sap_axis.rs:55:13
```

It would be nice if this could cause a panic in a system instead, with a more understandable error message.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.