예제 #1
0
        public void RemoveShape(CollisionShape shape)
        {
            com.RemoveChildShape(shape.BulletShape);
            var index = shapes.IndexOf(shape);

            shapes.RemoveAt(index);
            transforms.RemoveAt(index);
        }
예제 #2
0
        /// <summary>
        /// Removes a child shape.
        /// </summary>
        /// <param name="shape">The shape.</param>
        public void RemoveChildShape(ColliderShape shape)
        {
            colliderShapes.Remove(shape);

            InternalCompoundShape.RemoveChildShape(shape.InternalShape);

            shape.Parent = null;
        }