Closed lunacys closed 6 months ago
Closes #15.
This PR splits SteeringHost into 3 different components:
SteeringHost
Position
PhysicsParams
Steering Behaviors are now in a separate module behaviors and are now simple structs which can be held in components (player, enemies, etc).
behaviors
Implemented behaviors:
There might be a better way to handle steering behaviors, but this is the way I came up with.
Closes #15.
This PR splits
SteeringHost
into 3 different components:Position
- holds entity's position.SteeringHost
- holds steering data (current velocity, steering and desired velocity).PhysicsParams
- holds parameters forSteeringHost
(max velocity, max force, mass and friction).Steering Behaviors are now in a separate module
behaviors
and are now simple structs which can be held in components (player, enemies, etc).Implemented behaviors: