private void PositionPreviewObjects(Quaternion pivotRot, Vector3 pivotPos, Quaternion bodyRot, Vector3 bodyPos, Quaternion directionRot, Quaternion rootRot, Vector3 rootPos, Vector3 directionPos, float scale)
{
this.m_ReferenceInstance.transform.position = rootPos;
this.m_ReferenceInstance.transform.rotation = rootRot;
this.m_ReferenceInstance.transform.localScale = (Vector3) ((Vector3.one * scale) * 1.25f);
this.m_DirectionInstance.transform.position = directionPos;
this.m_DirectionInstance.transform.rotation = directionRot;
this.m_DirectionInstance.transform.localScale = (Vector3) ((Vector3.one * scale) * 2f);
this.m_PivotInstance.transform.position = pivotPos;
this.m_PivotInstance.transform.rotation = pivotRot;
this.m_PivotInstance.transform.localScale = (Vector3) ((Vector3.one * scale) * 0.1f);
this.m_RootInstance.transform.position = bodyPos;
this.m_RootInstance.transform.rotation = bodyRot;
this.m_RootInstance.transform.localScale = (Vector3) ((Vector3.one * scale) * 0.25f);
if (this.Animator != null)
{
float normalizedTime = this.timeControl.normalizedTime;
float num2 = this.timeControl.deltaTime / (this.timeControl.stopTime - this.timeControl.startTime);
if (((normalizedTime - num2) < 0f) || ((normalizedTime - num2) >= 1f))
{
this.m_PrevFloorHeight = this.m_NextFloorHeight;
}
if (((this.m_LastNormalizedTime != -1000f) && (this.timeControl.startTime == this.m_LastStartTime)) && (this.timeControl.stopTime == this.m_LastStopTime))
{
float num3 = (normalizedTime - num2) - this.m_LastNormalizedTime;
if (num3 > 0.5f)
{
num3--;
}
else if (num3 < -0.5f)
{
num3++;
}
}
this.m_LastNormalizedTime = normalizedTime;
this.m_LastStartTime = this.timeControl.startTime;
this.m_LastStopTime = this.timeControl.stopTime;
if (this.m_NextTargetIsForward)
{
this.m_NextFloorHeight = this.Animator.targetPosition.y;
}
else
{
this.m_PrevFloorHeight = this.Animator.targetPosition.y;
}
this.m_NextTargetIsForward = !this.m_NextTargetIsForward;
this.Animator.SetTarget(AvatarTarget.Root, !this.m_NextTargetIsForward ? ((float) 0) : ((float) 1));
}
}