Class RollOffset

java.lang.Object
me.c7dev.dexterity.util.RollOffset

public class RollOffset extends Object
Used to calculate the roll degrees, roll offset vector, or transformation quaternion for a DexBlock
  • Constructor Summary

    Constructors
    Constructor
    Description
    RollOffset(float deg, org.bukkit.util.Vector scale)
    Constructs the roll offset vector and quaternion
    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
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.util.Vector
     
    org.joml.Quaternionf
     
    float
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RollOffset

      public RollOffset(float deg, org.bukkit.util.Vector scale)
      Constructs the roll offset vector and quaternion
      Parameters:
      deg - Roll in degrees
      scale - 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 quaternion
      scale - Scale of block
  • Method Details

    • getOffset

      public org.bukkit.util.Vector getOffset()
    • getRoll

      public float getRoll()
    • getQuaternion

      public org.joml.Quaternionf getQuaternion()