MoveProxy() публичный Метод

Move a proxy with a swepted AABB. If the proxy has moved outside of its fattened AABB, then the proxy is removed from the tree and re-inserted. Otherwise the function returns immediately.
public MoveProxy ( int proxyId, AABB aabb, Vec2 displacement ) : bool
proxyId int
aabb AABB
displacement Box2D.Common.Vec2
Результат bool
Пример #1
0
        /// <summary>
        /// Call MoveProxy as many times as you like, then when you are done call UpdatePairs to finalized
        /// the proxy pairs (for your time step).
        /// </summary>
        public void MoveProxy(int proxyId, AABB aabb, Vec2 displacement)
        {
            bool buffer = m_tree.MoveProxy(proxyId, aabb, displacement);

            if (buffer)
            {
                BufferMove(proxyId);
            }
        }