Rename rigid-body static to fixed

This commit is contained in:
Sébastien Crozet
2022-03-19 16:23:09 +01:00
committed by Sébastien Crozet
parent db6a8c526d
commit a9e3441ecd
87 changed files with 284 additions and 271 deletions

View File

@@ -170,11 +170,11 @@ impl GraphicsManager {
&mut self,
materials: &mut Assets<BevyMaterial>,
handle: RigidBodyHandle,
is_static: bool,
is_fixed: bool,
) -> Point3<f32> {
let mut color = self.ground_color;
if !is_static {
if !is_fixed {
match self.b2color.get(&handle).cloned() {
Some(c) => color = c,
None => color = Self::gen_color(&mut self.rand),