I'm trying to understand a section this (Steering Behaviors For Autonomous Characters)
This part has been confusing:
"forces (as limited by max_force) are applied to the vehicle’s
point mass. This produces an acceleration equal to the steering force
divided by the vehicle’s mass. That acceleration is added to the old
velocity to produce a new velocity, which is then truncated by
max_speed. Finally, the velocity is added to the old position"
steering_force = truncate (steering_direction, max_force) acceleration = steering_force / mass velocity = truncate (velocity + acceleration, max_speed) position = position + velocity
I'm confused here because I've always thought of position as X and Y coordinates (X,Y) but here its just position.
someone explain this to me. (plz)