I am currently doing several UML tasks for practice and I got stuck on one of the tasks. In general, I want to modell moving objects. When a moving object moves, they go to a neighboring field (a field may have multiple neighbors). There are two kinds of objects, one of each behaves differently and "Object 2" moves 2 times faster then "Object 1". So basically I have to represent that the "Object 1" moves half as much as the "Object 2" at the same time. How can I make the movment dependent on velocity and shows this on the diagrams? Here is my basic class diagram and my sequence without the velocity:
I guess I should make the Move() functions dependent on the velocity too but I do not understand if that is enoguh or somehow I must represent on sequences that "Object 2" steps two times more thent "Object 1" at the same time.