Revert "bodge surfs"
This reverts commit 65b49d27261754903b2e39194c80ac096afc1da2.
This commit is contained in:
parent
871aadb78a
commit
83ac776b78
@ -28,9 +28,9 @@ use gameplay::ModeState;
|
|||||||
// or the only bots which fail are ones exploiting a surgically patched bug.
|
// or the only bots which fail are ones exploiting a surgically patched bug.
|
||||||
#[derive(Clone,Copy,Hash,Debug,id::Id,Eq,PartialEq,Ord,PartialOrd)]
|
#[derive(Clone,Copy,Hash,Debug,id::Id,Eq,PartialEq,Ord,PartialOrd)]
|
||||||
pub struct PhysicsVersion(u32);
|
pub struct PhysicsVersion(u32);
|
||||||
pub const VERSION:PhysicsVersion=PhysicsVersion(1);
|
pub const VERSION:PhysicsVersion=PhysicsVersion(0);
|
||||||
const LATEST_COMPATIBLE_VERSION:[u32;1+VERSION.0 as usize]=const{
|
const LATEST_COMPATIBLE_VERSION:[u32;1+VERSION.0 as usize]=const{
|
||||||
let compat=[0,1];
|
let compat=[0];
|
||||||
|
|
||||||
let mut input_version=0;
|
let mut input_version=0;
|
||||||
while input_version<compat.len(){
|
while input_version<compat.len(){
|
||||||
@ -1294,7 +1294,7 @@ fn set_velocity_cull(body:&mut Body,touching:&mut TouchingState,models:&PhysicsM
|
|||||||
let mut culled=false;
|
let mut culled=false;
|
||||||
touching.contacts.retain(|contact|{
|
touching.contacts.retain(|contact|{
|
||||||
let n=contact_normal(models,hitbox_mesh,contact);
|
let n=contact_normal(models,hitbox_mesh,contact);
|
||||||
let r=(n.dot(v)>>52).is_positive();
|
let r=n.dot(v).is_positive();
|
||||||
if r{
|
if r{
|
||||||
culled=true;
|
culled=true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user