diff options
Diffstat (limited to 'src/dynamics/rigid_body_set.rs')
| -rw-r--r-- | src/dynamics/rigid_body_set.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dynamics/rigid_body_set.rs b/src/dynamics/rigid_body_set.rs index 36cf4d3..79d5827 100644 --- a/src/dynamics/rigid_body_set.rs +++ b/src/dynamics/rigid_body_set.rs @@ -106,6 +106,11 @@ impl RigidBodySet { self.bodies.len() } + /// `true` if there are no rigid bodies in this set. + pub fn is_empty(&self) -> bool { + self.bodies.is_empty() + } + /// Is the given body handle valid? pub fn contains(&self, handle: RigidBodyHandle) -> bool { self.bodies.contains(handle.0) |
