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

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

Updates the world transform of the shape using the given position and orientation. The world transform of the shape is offset from the given position and orientation by the collidable's LocalPosition.
public UpdateWorldTransform ( System.Vector3 &position, Quaternion &orientation ) : void
position System.Vector3 Position to use for the calculation.
orientation Quaternion Orientation to use for the calculation.
Результат void
        public virtual void UpdateWorldTransform(ref Vector3 position, ref Quaternion orientation)
        {
            Vector3.Transform(ref localPosition, ref orientation, out worldTransform.Position);
            Vector3.Add(ref worldTransform.Position, ref position, out worldTransform.Position);
            worldTransform.Orientation = orientation;

            worldTransform.Validate();
        }