From b4c74279b7789ac44379bbd26217c977bd0c56de Mon Sep 17 00:00:00 2001 From: Andrew Pritchard Date: Fri, 6 Sep 2019 13:24:42 +0800 Subject: [PATCH] Vec3 is apprently *not* Copy, Set near plane to 0.1 to prevent tirangle flickering --- common/src/sys/phys.rs | 2 +- voxygen/src/scene/camera.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/sys/phys.rs b/common/src/sys/phys.rs index 3a2c516a69..1eb41d48cc 100644 --- a/common/src/sys/phys.rs +++ b/common/src/sys/phys.rs @@ -99,7 +99,7 @@ impl<'a> System<'a> for Sys { .flatten() .flatten(); - let old_vel = vel; + let old_vel = vel.clone(); // Integrate forces // Friction is assumed to be a constant dependent on location let friction = if physics_state.on_ground { diff --git a/voxygen/src/scene/camera.rs b/voxygen/src/scene/camera.rs index 4293b33001..57b6e54d42 100644 --- a/voxygen/src/scene/camera.rs +++ b/voxygen/src/scene/camera.rs @@ -4,7 +4,7 @@ use frustum_query::frustum::Frustum; use std::f32::consts::PI; use vek::*; -const NEAR_PLANE: f32 = 0.01; +const NEAR_PLANE: f32 = 0.1; const FAR_PLANE: f32 = 10000.0; const INTERP_TIME: f32 = 0.1;