Hi guys,
If i was to have a 2d pitch and wanted to move a player(circle) towards a target on the pitch, how would you program this behaviour?
desired_velocity = normalize (position - target) * max_speed
steering = desired_velocity - velocity
I have vectors for both position and velocity. Basically an object that holds a float for both x and y. How would I then go about writing this? ???
Any help greatly appreciated,
Thanks
