Add methods to read the mass or volume of a collider.

This commit is contained in:
Sébastien Crozet
2022-07-05 15:15:17 +02:00
parent ba081fb6f5
commit 7831ebfc31
5 changed files with 32 additions and 11 deletions

View File

@@ -338,7 +338,7 @@ impl PhysxWorld {
let densities: Vec<_> = rb
.colliders()
.iter()
.map(|h| colliders[*h].density().unwrap_or(0.0))
.map(|h| colliders[*h].density())
.collect();
unsafe {