Package me.c7dev.dexterity.util
Class RollOffset
java.lang.Object
me.c7dev.dexterity.util.RollOffset
Used to calculate the roll degrees, roll offset vector, or transformation quaternion for a DexBlock
-
Constructor Summary
ConstructorDescriptionRollOffset
(float deg, org.bukkit.util.Vector scale) Constructs the roll offset vector and quaternionRollOffset
(org.joml.Quaternionf r, org.bukkit.util.Vector scale) Constructs the roll offset vector and roll degrees Quaternion must only have rotation in z axis -
Method Summary
-
Constructor Details
-
RollOffset
public RollOffset(float deg, org.bukkit.util.Vector scale) Constructs the roll offset vector and quaternion- Parameters:
deg
- Roll in degreesscale
- Scale of block
-
RollOffset
public RollOffset(org.joml.Quaternionf r, org.bukkit.util.Vector scale) Constructs the roll offset vector and roll degrees Quaternion must only have rotation in z axis- Parameters:
r
- Left rotation quaternionscale
- Scale of block
-
-
Method Details
-
getOffset
public org.bukkit.util.Vector getOffset() -
getRoll
public float getRoll() -
getQuaternion
public org.joml.Quaternionf getQuaternion()
-