diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/dynamics/rigid_body.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dynamics/rigid_body.rs b/src/dynamics/rigid_body.rs index 78132b2..b850f66 100644 --- a/src/dynamics/rigid_body.rs +++ b/src/dynamics/rigid_body.rs @@ -184,6 +184,12 @@ impl RigidBody { } } + /// The axes along which this rigid-body cannot translate or rotate. + #[inline] + pub fn locked_axes(&self) -> LockedAxes { + self.mprops.flags + } + #[inline] /// Locks or unlocks all the rotations of this rigid-body. pub fn lock_rotations(&mut self, locked: bool, wake_up: bool) { |
