Function base2d_kinematics::projectVelocity

Function Documentation

inline double base2d_kinematics::projectVelocity(double v0, double accel, double decel, double dt, double target)

Given initial conditions and a time, figure out the end velocity.

Parameters:
  • v0 – Initial velocity

  • accel – The acceleration rate

  • decel – The deceleration rate

  • dt – Delta time - amount of time to project into the future

  • target – target velocity

Returns:

The velocity dt seconds after v0.