forked from StrafesNET/strafe-project
quiet down physics
This commit is contained in:
parent
9014e2ee80
commit
dda67f2c1a
@ -1283,7 +1283,6 @@ fn set_velocity_cull(body:&mut Body,touching:&mut TouchingState,models:&PhysicsM
|
||||
let r=n.dot(v).is_positive();
|
||||
if r{
|
||||
culled=true;
|
||||
println!("set_velocity_cull contact={:?}",contact);
|
||||
}
|
||||
!r
|
||||
});
|
||||
@ -1302,7 +1301,6 @@ fn set_acceleration_cull(body:&mut Body,touching:&mut TouchingState,models:&Phys
|
||||
let r=n.dot(a).is_positive();
|
||||
if r{
|
||||
culled=true;
|
||||
println!("set_acceleration_cull contact={:?}",contact);
|
||||
}
|
||||
!r
|
||||
});
|
||||
@ -1520,7 +1518,7 @@ fn collision_start_contact(
|
||||
let model_id=contact.model_id.into();
|
||||
let mut allow_run_teleport_behaviour=not_spawn_at(mode,model_id);
|
||||
match &attr.contacting.contact_behaviour{
|
||||
Some(gameplay_attributes::ContactingBehaviour::Surf)=>println!("I'm surfing!"),
|
||||
Some(gameplay_attributes::ContactingBehaviour::Surf)=>(),
|
||||
Some(gameplay_attributes::ContactingBehaviour::Cling)=>println!("Unimplemented!"),
|
||||
&Some(gameplay_attributes::ContactingBehaviour::Elastic(elasticity))=>{
|
||||
let reflected_velocity=body.velocity+((body.velocity-incident_velocity)*Planar64::raw(elasticity as i64+1)).fix_1();
|
||||
|
Loading…
x
Reference in New Issue
Block a user