aboutsummaryrefslogtreecommitdiff
path: root/src_testbed/graphics.rs
diff options
context:
space:
mode:
authorSébastien Crozet <developer@crozet.re>2022-03-19 16:23:09 +0100
committerSébastien Crozet <sebastien@crozet.re>2022-03-20 21:49:16 +0100
commita9e3441ecd64d50b478ab5370fabe187ec9a5c39 (patch)
tree92b2e4ee3d3599a446f15551cc74e8e71b9c6150 /src_testbed/graphics.rs
parentdb6a8c526d939a125485c89cfb6e540422fe6b4b (diff)
downloadrapier-a9e3441ecd64d50b478ab5370fabe187ec9a5c39.tar.gz
rapier-a9e3441ecd64d50b478ab5370fabe187ec9a5c39.tar.bz2
rapier-a9e3441ecd64d50b478ab5370fabe187ec9a5c39.zip
Rename rigid-body `static` to `fixed`
Diffstat (limited to 'src_testbed/graphics.rs')
-rw-r--r--src_testbed/graphics.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src_testbed/graphics.rs b/src_testbed/graphics.rs
index 8bf787d..847258d 100644
--- a/src_testbed/graphics.rs
+++ b/src_testbed/graphics.rs
@@ -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),