GroundVelocity
Introduction
Code Example - Setting Ground Velocity
if(Keyboard.Main.KeyDown(Microsoft.Xna.Framework.Input.Keys.Space))
{
Player1.GroundVelocity = new Vector3(32, 0, 0);
EditorVisuals.Text("Space is held", Camera.Main.Position.AtZ(0));
}
else
{
Player1.GroundVelocity = new Vector3(0, 0, 0);
}
GroundVelocity Affects Movement

Last updated
Was this helpful?