BEPUphysics.EntityStateManagement.EntityStateWriteBuffer.EnqueueLinearVelocity C# (CSharp) Method

EnqueueLinearVelocity() public method

Enqueues a change to an entity's linear velocity.
public EnqueueLinearVelocity ( Entity entity, Microsoft.Xna.Framework.Vector3 &newLinearVelocity ) : void
entity BEPUphysics.Entities.Entity Entity to target.
newLinearVelocity Microsoft.Xna.Framework.Vector3 New linear velocity of the entity.
return void
        public void EnqueueLinearVelocity(Entity entity, ref Vector3 newLinearVelocity)
        {
            stateChanges.Enqueue(new EntityStateChange { target = entity, vector = newLinearVelocity, targetField = TargetField.LinearVelocity });
        }
        ///<summary>