diff options
Diffstat (limited to 'src/3d/physics.cc')
| -rw-r--r-- | src/3d/physics.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/3d/physics.cc b/src/3d/physics.cc index db27e95..788246f 100644 --- a/src/3d/physics.cc +++ b/src/3d/physics.cc @@ -16,7 +16,7 @@ float PhysicsSystem::sample_sdf(const Object3D& obj, vec3 world_p) { float d = 1000.0f; if (obj.type == ObjectType::SPHERE) { d = q.len() - 1.0f; - } else if (obj.type == ObjectType::BOX || obj.type == ObjectType::CUBE) { + } else if (obj.type == ObjectType::BOX || obj.type == ObjectType::CUBE) { // CUBE is legacy alias d = sdf::sdBox(q, vec3(1.0f, 1.0f, 1.0f)); } else if (obj.type == ObjectType::TORUS) { d = sdf::sdTorus(q, vec2(1.0f, 0.4f)); |
