Vec3 is apprently *not* Copy, Set near plane to 0.1 to prevent tirangle flickering

This commit is contained in:
Andrew Pritchard 2019-09-06 13:24:42 +08:00
parent b4d5663fed
commit b4c74279b7
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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;