forked from StrafesNET/strafe-client
TEMP: disallow 0 time collisions
This commit is contained in:
parent
096284ea60
commit
c971ab24e2
@ -22,7 +22,7 @@ enum Transition<F,E:DirectedEdge,V>{
|
||||
let (n,d)=mesh.face_nd(face_id);
|
||||
for t in zeroes2((n.dot(body.position)-d)*2,n.dot(body.velocity)*2,n.dot(body.acceleration)){
|
||||
let t=body.time+Time::from(t);
|
||||
if time<=t&&t<best_time&&n.dot(body.extrapolated_velocity(t))<Planar64::ZERO{
|
||||
if time<t&&t<best_time&&n.dot(body.extrapolated_velocity(t))<Planar64::ZERO{
|
||||
best_time=t;
|
||||
best_transtition=Transition::Hit(face_id,t);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user