I am working on a mono game using c# (Visual Studio 2015)that needs to incorporate random velocities.
I am working with: const float BaseSpeed = 0.15f;
Vector2 upLeft = new Vector2(-BaseSpeed, -BaseSpeed);
Vector2 upRight = new Vector2(BaseSpeed, -BaseSpeed);
Vector2 downRight = new Vector2(BaseSpeed, BaseSpeed);
Vector2 downLeft = new Vector2(-BaseSpeed, BaseSpeed);
I need to replace .15f with a physics based update (distance x time). I know it involves using "gameTime.ElapsedGameTime.Milliseconds" but I keep getting an error that says 'gameTime does not exist in this context.'
I might be trying to set it in the wrong location.
Can anyone explain how to do this distance*time calculation?