BEPUphysics.EntityStateManagement.EntityStateWriteBuffer.UpdateStage C# (CSharp) 메소드

UpdateStage() 보호된 메소드

protected UpdateStage ( ) : void
리턴 void
        protected override void UpdateStage()
        {
            EntityStateChange item;
            while (stateChanges.TryDequeueFirst(out item))
            {
                Entity target = item.target;
                switch (item.targetField)
                {
                    case TargetField.Position:
                        target.Position = item.vector;
                        break;
                    case TargetField.Orientation:
                        target.Orientation = item.orientationQuaternion;
                        break;
                    case TargetField.LinearVelocity:
                        target.LinearVelocity = item.vector;
                        break;
                    case TargetField.AngularVelocity:
                        target.AngularVelocity = item.vector;
                        break;
                }
            }
        }