inda21plusplus / Project-Delta

This is the repository for the group project assignment in the course "Project in Introduction to Computer Science" (DD1396), by the Inda21plusplus group.
MIT License
8 stars 0 forks source link

Integrate the ECS and Physics #36

Closed foodelevator closed 2 years ago

foodelevator commented 2 years ago

Depends on #37

Integrates the ECS with the physics.

The way it currently works is that game_engine::physics_systems::update takes a &mut ecs::World and runs a physics step on all entities with a common::Transform, physics::Rigidbody, and optionally physics::Collider. It also looks for a physics::Gravity and game_engine::Time as a resource.

foodelevator commented 2 years ago

In my opinion having to do r#box is pretty ugly, and I guess it could decrease confusion, so I agree 👍