Пример #1
0
    void FixedUpdate()
    {
        if (bFixedUpdateMode)
        {
            base.ToggleConnect();
            base.Update();

            if (boundActor != null && boundAnimator != null)
            {
                if (physicalReference.Initiated())
                {
                    ReleasePhysicalContext();
                }

                ApplyMotion(boundActor, boundAnimator, bonePositionOffsets, boneRotationOffsets, bFixedUpdateMode, fLerpPosition, iFPS, fLerpDeltaTime);
            }
        }
        else
        {
            base.ToggleConnect();

            if (boundActor != null && boundAnimator != null && physicalUpdate)
            {
                if (!physicalReference.Initiated())
                {
                    physicalUpdate = InitPhysicalContext();
                }

                ApplyMotionPhysically(physicalReference.GetReferenceAnimator(), boundAnimator);
            }
        }
    }
Пример #2
0
    void FixedUpdate()
    {
        base.ToggleConnect();

        if (boundActor != null && boundAnimator != null && physicalUpdate)
        {
            if (!physicalReference.Initiated())
            {
                physicalUpdate = InitPhysicalContext();
            }

            ApplyMotionPhysically(physicalReference.GetReferenceAnimator(), boundAnimator);
        }
    }
    private void FixedUpdate()
    {
        base.ToggleConnect();

        if (boundActor != null && boundAnimator != null && motionUpdateMethod != UpdateMethod.Normal) // && physicalUpdate )
        {
            if (!physicalReference.Initiated())
            {
                //physicalUpdate = InitPhysicalContext ();
                InitPhysicalContext();
            }

            ApplyMotionPhysically(physicalReference.GetReferenceAnimator(), boundAnimator);
        }
    }