예제 #1
0
        public override void Move(T objct, Matrix translation)
        {
            object bounding;
            Node   n;

            if (objectToNode.TryGetValue(objct, out n))
            {
                bounding = n.objct_to_boundings[objct];
            }
            else
            {
                bounding = nonfittableObjects[objct];
            }
            Move(objct, Boundings.Transform(bounding, translation));
        }
예제 #2
0
 public override void Move(T objct, Matrix translation)
 {
     entities[objct] = Boundings.Transform(entities[objct], translation);
 }