BEPUphysics.BroadPhaseEntries.MobileCollidables.CompoundCollidable.UpdateWorldTransform C# (CSharp) Метод

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

Updates the world transform of the collidable.
public UpdateWorldTransform ( Vector3 &position, Microsoft.Xna.Framework.Quaternion &orientation ) : void
position Vector3 Position to use for the calculation.
orientation Microsoft.Xna.Framework.Quaternion Orientation to use for the calculation.
Результат void
        public override void UpdateWorldTransform(ref Vector3 position, ref Quaternion orientation)
        {
            base.UpdateWorldTransform(ref position, ref orientation);
            var shapeList = Shape.shapes;
            for (int i = 0; i < children.Count; i++)
            {
                RigidTransform transform;
                RigidTransform.Transform(ref shapeList.Elements[children.Elements[i].shapeIndex].LocalTransform, ref worldTransform, out transform);
                children.Elements[i].CollisionInformation.UpdateWorldTransform(ref transform.Position, ref transform.Orientation);
            }
        }