Ejemplo n.º 1
0
        // Token: 0x06001841 RID: 6209 RVA: 0x00068FD0 File Offset: 0x000671D0
        public static PitchYawPair Lerp(PitchYawPair a, PitchYawPair b, float t)
        {
            float num  = Mathf.LerpAngle(a.pitch, b.pitch, t);
            float num2 = Mathf.LerpAngle(a.yaw, b.yaw, t);

            return(new PitchYawPair(num, num2));
        }
Ejemplo n.º 2
0
        // Token: 0x06001842 RID: 6210 RVA: 0x00069008 File Offset: 0x00067208
        public static PitchYawPair SmoothDamp(PitchYawPair current, PitchYawPair target, ref PitchYawPair velocity, float smoothTime, float maxSpeed)
        {
            float num  = Mathf.SmoothDampAngle(current.pitch, target.pitch, ref velocity.pitch, smoothTime, maxSpeed);
            float num2 = Mathf.SmoothDampAngle(current.yaw, target.yaw, ref velocity.yaw, smoothTime, maxSpeed);

            return(new PitchYawPair(num, num2));
        }
Ejemplo n.º 3
0
 // Token: 0x060009B3 RID: 2483 RVA: 0x00030C82 File Offset: 0x0002EE82
 public static void Write(this NetworkWriter writer, PitchYawPair pitchYawPair)
 {
     writer.Write(pitchYawPair.pitch);
     writer.Write(pitchYawPair.yaw);
 }
 // Token: 0x06000BE5 RID: 3045 RVA: 0x0003A0E8 File Offset: 0x000382E8
 private void SetPitchYaw(PitchYawPair pitchYawPair)
 {
     this.pitch = pitchYawPair.pitch;
     this.yaw   = pitchYawPair.yaw;
 }