<grin> units/millisecond.  Awesome :)  Thanks for the insight.


On Wed, Dec 11, 2013 at 1:09 PM, Immortius <notifications@github.com> wrote:

> In
> engine/src/main/java/org/terasology/logic/drowning/DrowningComponent.java:
>
> > @@ -24,7 +24,16 @@
> >   */
> >  public class DrowningComponent implements Component {
> >      @Replicate(FieldReplicateType.SERVER_TO_OWNER)
> > -    public long startDrowningTime;
> > +    public float breathRemaining;
>
> We use float for the delta values because a time change in seconds is more
> useful for most per-frame logic - such as lerps, movement calculations and
> so forth. Originally we used an integral value but that meant many systems
> were dividing it by 1000f, or components had odd values like speed in units
> per millisecond.
>
> The other value (deltaMs) is available from Time, if I recall correctly.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/MovingBlocks/Terasology/pull/772/files#r8281634>
> .
>