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 229eb40..2aa101d 100644 --- a/src/3d/physics.cc +++ b/src/3d/physics.cc @@ -54,7 +54,7 @@ float PhysicsSystem::sample_sdf(const Object3D& obj, vec3 world_p) { float sx = vec3(model.m[0], model.m[1], model.m[2]).len(); float sy = vec3(model.m[4], model.m[5], model.m[6]).len(); float sz = vec3(model.m[8], model.m[9], model.m[10]).len(); - + float s = std::min(sx, std::min(sy, sz)); if (obj.type == ObjectType::PLANE) { s = sy; // For plane with local normal (0,1,0), scale is sy |
