mirror of
https://github.com/FyroxEngine/Fyrox.git
synced 2026-10-12 02:02:20 +00:00
formatted joint.rs
This commit is contained in:
@@ -589,7 +589,9 @@ impl Joint {
|
||||
pub fn disable_motor(&mut self) -> Result<(), String> {
|
||||
if !matches!(
|
||||
self.params(),
|
||||
JointParams::RevoluteJoint(_) | JointParams::PrismaticJoint(_) | JointParams::BallJoint(_)
|
||||
JointParams::RevoluteJoint(_)
|
||||
| JointParams::PrismaticJoint(_)
|
||||
| JointParams::BallJoint(_)
|
||||
) {
|
||||
return Err("Joint is not a RevoluteJoint, PrismaticJoint or BallJoint".to_string());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user