Class: GeometricTrajectory
Contains data about the trajectory of a character or projectile. Note that instances of this class act as iterators. For example if a player is jumping you can predict the arc they will travel like this:
for (let position of player.trajectory) {
console.log(position);
}To convert a trajectory into a plain array of Point instances you can do: points = [ ...trajectory ].
Properties
velocityX{number}Horizontal velocity
velocityY{number}Vertical velocity
accelerationX{number}Horizontal acceleration
accelerationY{number}Vertical acceleration