SDF, tags registry

This commit is contained in:
paulevsGitch 2020-09-29 00:07:47 +03:00
parent 9ccd0d987b
commit cf8955ea4b
14 changed files with 214 additions and 3 deletions

View file

@ -20,6 +20,6 @@ public class SDFCapsule implements ISDF {
@Override
public float getDistance(float x, float y, float z) {
return MHelper.length(x, MathHelper.clamp(y, 0F, height), z) - radius;
return MHelper.length(x, MathHelper.clamp(y, -height, 0), z) - radius;
}
}