Skip to content

Commit

Permalink
Be more specific for variables and stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver-makes-code committed Nov 10, 2023
1 parent 0d0ea2d commit c475088
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,20 @@
import org.joml.Vector3f;

public class VoxelShenanigans {
/**
* The size of individual voxels, basically the resolution.
* It must be within 2^n or else the math will die,
* and I have no clue what demons will traverse the portal to hell you'll open.
* */
public static final int SIZE = 32;
/**
* This is the max value of the loop below
* */
public static final long MAX = (long) SIZE * (long) SIZE * (long) SIZE - 1;
/**
* The number of bits in {@link VoxelShenanigans#SIZE}
* Please keep it in check or society will go up in flames.
* */
public static final long SHIFT = 5;

public static VoxelShape rotateShape(VoxelShape shape, Quaternionf rotation) {
Expand Down

0 comments on commit c475088

Please sign in to comment.