示例#1
0
文件: Core.cs 项目: Doom2fan/PokesYou
 public static Accum GetTicTimeFracAccum()
 {
     return(FixedMath.Clamp(new Accum(ticClock.ElapsedMilliseconds) / new Accum(Constants.MsecsPerTic), Accum.Zero, Accum.One));
 }
示例#2
0
 static readonly Accum _friction = Accum.MakeAccum(0x00000000); //0x0000E800);
 public virtual Accum GetFriction()
 {
     return(FixedMath.Clamp(_friction, Accum.Zero, Accum.One));
 }