move to namespace

This commit is contained in:
Andrey Tazetdinov 2026-10-21 11:28:33 +02:00
parent 67ed7ac582
commit 8798b34423
8 changed files with 63 additions and 45 deletions

View file

@ -7,6 +7,8 @@
#define GLM_ENABLE_EXPERIMENTAL
#include <glm/gtx/norm.hpp>
using namespace physics;
static glm::vec3 calc_collsion_velocity_result(
const Hitbox& a, const Hitbox& b
) {
@ -316,7 +318,7 @@ static void calc_collisions(
}
}
void calc_substep(Hitbox& hitbox, const CollisionContext& ctx) {
void physics::calc_substep(Hitbox& hitbox, const CollisionContext& ctx) {
const auto& chunks = ctx.chunks;
const auto& solids = ctx.solids;
const auto& gravity = ctx.gravity;