From 479e6572512f4417c928c34fd31f38dc0c70ff55 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 7 Jan 2025 05:59:31 -0800 Subject: [PATCH] notes --- strafe-client/src/model_physics.rs | 1 + strafe-client/src/physics.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/strafe-client/src/model_physics.rs b/strafe-client/src/model_physics.rs index 5789b9a..ae60240 100644 --- a/strafe-client/src/model_physics.rs +++ b/strafe-client/src/model_physics.rs @@ -787,6 +787,7 @@ impl MinkowskiMesh<'_>{ impl MeshQuery for MinkowskiMesh<'_>{ type Normal=Vector3>; type Offset=Fixed<4,128>; + // TODO: relative d fn face_nd(&self,face_id:MinkowskiFace)->(Self::Normal,Self::Offset){ match face_id{ MinkowskiFace::VertFace(v0,f1)=>{ diff --git a/strafe-client/src/physics.rs b/strafe-client/src/physics.rs index 2463f90..c80264f 100644 --- a/strafe-client/src/physics.rs +++ b/strafe-client/src/physics.rs @@ -1092,7 +1092,7 @@ impl instruction::InstructionConsumer for PhysicsContext{ } } impl instruction::InstructionEmitter for PhysicsContext{ - //this little next instruction function can cache its return value and invalidate the cached value by watching the State. + //this little next instruction function could cache its return value and invalidate the cached value by watching the State. fn next_instruction(&self,time_limit:Time)->Option>{ next_instruction_internal(&self.state,&self.data,time_limit) } @@ -1488,6 +1488,7 @@ struct CheckpointCheckOutcome{ teleport_to_model:Option, } +// stage_element.touch_result(mode,mode_state) fn checkpoint_check( mode_state:&ModeState, stage_element:&gameplay_modes::StageElement, @@ -1498,7 +1499,6 @@ fn checkpoint_check( //check if current stage is complete if let Some(current_stage)=mode.get_stage(mode_state.get_stage_id()){ if !current_stage.is_complete(mode_state.ordered_checkpoint_count(),mode_state.unordered_checkpoint_count()){ - //do the stage checkpoints have to be reset? return CheckpointCheckOutcome{ set_stage:None, teleport_to_model:Some(current_stage.spawn()),