Example #1
0
 // Token: 0x06002A55 RID: 10837 RVA: 0x00107E28 File Offset: 0x00106228
 public void updateLastSnapshot(ISnapshotInfo info)
 {
     this.readIndex  = 0;
     this.readCount  = 0;
     this.writeIndex = 0;
     this.writeCount = 0;
     this.lastInfo   = info;
     this.readLast   = Time.realtimeSinceStartup;
 }
Example #2
0
        public ISnapshotInfo lerp(ISnapshotInfo targetTemp, float delta)
        {
            YawSnapshotInfo yawSnapshotInfo = (YawSnapshotInfo)targetTemp;

            return(new YawSnapshotInfo
            {
                pos = Vector3.Lerp(this.pos, yawSnapshotInfo.pos, delta),
                yaw = Mathf.LerpAngle(this.yaw, yawSnapshotInfo.yaw, delta)
            });
        }
        public ISnapshotInfo lerp(ISnapshotInfo targetTemp, float delta)
        {
            TransformSnapshotInfo transformSnapshotInfo = (TransformSnapshotInfo)targetTemp;

            return(new TransformSnapshotInfo
            {
                pos = Vector3.Lerp(this.pos, transformSnapshotInfo.pos, delta),
                rot = Quaternion.Slerp(this.rot, transformSnapshotInfo.rot, delta)
            });
        }
        public ISnapshotInfo lerp(ISnapshotInfo targetTemp, float delta)
        {
            PitchYawSnapshotInfo pitchYawSnapshotInfo = (PitchYawSnapshotInfo)targetTemp;

            return(new PitchYawSnapshotInfo
            {
                pos = Vector3.Lerp(this.pos, pitchYawSnapshotInfo.pos, delta),
                pitch = Mathf.LerpAngle(this.pitch, pitchYawSnapshotInfo.pitch, delta),
                yaw = Mathf.LerpAngle(this.yaw, pitchYawSnapshotInfo.yaw, delta)
            });
        }
Example #5
0
 // Token: 0x06002A56 RID: 10838 RVA: 0x00107E58 File Offset: 0x00106258
 public void addNewSnapshot(ISnapshotInfo info)
 {
     this.snapshots[this.writeIndex].info      = info;
     this.snapshots[this.writeIndex].timestamp = Time.realtimeSinceStartup;
     this.incrementWriteIndex();
 }