MonkeFix / vs-rs

1 stars 1 forks source link

Lunacys/character movement #5

Closed lunacys closed 9 months ago

lunacys commented 9 months ago

Closes #2.

Updates movement functionality from camera (renamed movement.rs -> camera.rs) to player.

The new movement system adds a new Bevy plugin called SteeringPlugin which handles movement of all of the SteeringBundles.

Also added a trait called SteeringBehavior which allows to define new behaviors. There are several examples, e.g. SteerArrival. It might be useful when enemies and projectiles are added.

All the changes to the SteeringHost entities are immediately reflected by the update systems. For example, you can change max_velocity which indicates the maximum speed of an entity.

An example usage is here.