示例#1
0
    private IEnumerator UpdatePosition()
    {
        while (true)
        {
            if (body.IsFixed())
            {
                yield return(null);
            }

            this.transform.position = body.InterpolatedPosition();
            yield return(null);
        }
    }