Skip to content

Instantly share code, notes, and snippets.

View BlackJar72's full-sized avatar
😫
Doomed

JaredBGreat BlackJar72

😫
Doomed
View GitHub Profile
@jayfella
jayfella / AxisRotation.java
Last active October 19, 2020 15:36
A class to simplify rotations and quaternions.
package com.jayfella.jme.vehicle;
import com.jme3.math.FastMath;
import com.jme3.math.Quaternion;
/**
* Provides functionality to get and set rotations, limit the rotation to avoid large angles and convert them into
* a quaternion for scene rotation.
*
* @author jayfella
@williewillus
williewillus / primer.md
Last active September 23, 2024 02:37
1.13/1.14 update primer

This primer is licensed under CC0, do whatever you want.

BUT do note that this can be updated, so leave a link here so readers can see the updated information themselves.

1.13 and 1.14 are lumped together in this doc, you're on your own if you just want to go to 1.13 and not 1.14, for some reason.

1.15 stuff: https://gist.github.com/williewillus/30d7e3f775fe93c503bddf054ef3f93e

Things in Advance

  • ResourceLocation now throw on non-snake-case names instead of silently lowercasing for you, so you probably should go and change all those string constants now. More precisely, domains must only contain alphanumeric lowercase, underscore (_), dash (-), or dot (.). Paths have the same restrictions, but can also contain forward slashes (/).
@KdotJPG
KdotJPG / OpenSimplex2S.java
Last active October 13, 2024 16:49
Visually isotropic coherent noise algorithm based on alternate constructions of the A* lattice.
/**
* K.jpg's OpenSimplex 2, smooth variant ("SuperSimplex")
*
* More language ports, as well as legacy 2014 OpenSimplex, can be found here:
* https://github.com/KdotJPG/OpenSimplex2
*/
public class OpenSimplex2S {
private static final long PRIME_X = 0x5205402B9270C86FL;