update time for extern instructions
This commit is contained in:
parent
4951d1513d
commit
db5b3328bd
@ -743,13 +743,13 @@ impl crate::instruction::InstructionConsumer<PhysicsInstruction> for PhysicsStat
|
|||||||
}
|
}
|
||||||
//selectively update body
|
//selectively update body
|
||||||
match &ins.instruction {
|
match &ins.instruction {
|
||||||
PhysicsInstruction::SetWalkTargetVelocity(_) => (),//TODO: queue instructions and do self.time=ins.time,
|
PhysicsInstruction::SetWalkTargetVelocity(_)
|
||||||
|
|PhysicsInstruction::SetControlDir(_) => self.time=ins.time,//TODO: queue instructions
|
||||||
PhysicsInstruction::RefreshWalkTarget
|
PhysicsInstruction::RefreshWalkTarget
|
||||||
|PhysicsInstruction::ReachWalkTargetVelocity
|
|PhysicsInstruction::ReachWalkTargetVelocity
|
||||||
|PhysicsInstruction::CollisionStart(_)
|
|PhysicsInstruction::CollisionStart(_)
|
||||||
|PhysicsInstruction::CollisionEnd(_)
|
|PhysicsInstruction::CollisionEnd(_)
|
||||||
|PhysicsInstruction::StrafeTick
|
|PhysicsInstruction::StrafeTick
|
||||||
|PhysicsInstruction::SetControlDir(_)
|
|
||||||
|PhysicsInstruction::Jump => self.advance_time(ins.time),
|
|PhysicsInstruction::Jump => self.advance_time(ins.time),
|
||||||
}
|
}
|
||||||
match ins.instruction {
|
match ins.instruction {
|
||||||
|
Loading…
Reference in New Issue
Block a user