mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-20 17:39:46 +00:00
move to namespace
This commit is contained in:
parent
67ed7ac582
commit
8798b34423
8 changed files with 63 additions and 45 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue