示例#1
0
    bool InitPhysicalContext()
    {
        if (physicalReference.Init(boundAnimator))
        {
            // break original object's hierachy of transforms, so we can use MovePosition() and MoveRotation() to set transform
            NeuronHelper.BreakHierarchy(boundAnimator);
            return(true);
        }

        return(false);
    }
    //bool InitPhysicalContext()
    void InitPhysicalContext()
    {
        if (physicalReference.Init(boundAnimator, physicalReferenceOverride))
        {
            // break original object's hierachy of transforms, so we can use MovePosition() and MoveRotation() to set transform
            NeuronHelper.BreakHierarchy(boundAnimator);
            //return true;
        }

        CheckRigidbodySettings();
        //	return false;
    }