Class SyncTransformation


  • public class SyncTransformation
    extends Syncronized
    Transformation that can be syncronized in a network
    Author:
    Darius Dinger
    • Constructor Detail

      • SyncTransformation

        public SyncTransformation​(String tag)
        Parameters:
        tag - Tag of the syncronized float
    • Method Detail

      • addPosX

        public void addPosX​(float v)
        Adding value to the x position
        Parameters:
        v - Value to add to x
      • addPosY

        public void addPosY​(float v)
        Adding value to the y position
        Parameters:
        v - Value to add to y
      • addPosZ

        public void addPosZ​(float v)
        Adding value to the z position
        Parameters:
        v - Value to add to z
      • setPosX

        public void setPosX​(float v)
        Setting value to the x position
        Parameters:
        v - Value to set to x
      • setPosY

        public void setPosY​(float v)
        Setting value to the y position
        Parameters:
        v - Value to set to y
      • setPosZ

        public void setPosZ​(float v)
        Setting value to the z position
        Parameters:
        v - Value to set to z
      • addScaleX

        public void addScaleX​(float v)
        Adding value to the x scale
        Parameters:
        v - Value to add to x
      • addScaleY

        public void addScaleY​(float v)
        Adding value to the y scale
        Parameters:
        v - Value to add to y
      • addScaleZ

        public void addScaleZ​(float v)
        Adding value to the z scale
        Parameters:
        v - Value to add to z
      • setScaleX

        public void setScaleX​(float v)
        Setting value to the x scale
        Parameters:
        v - Value to set to x
      • setScaleY

        public void setScaleY​(float v)
        Setting value to the y scale
        Parameters:
        v - Value to set to y
      • setScaleZ

        public void setScaleZ​(float v)
        Setting value to the z scale
        Parameters:
        v - Value to set to z
      • addRotX

        public void addRotX​(float v)
        Adding value to the x rotation
        Parameters:
        v - Value to add to x
      • addRotY

        public void addRotY​(float v)
        Adding value to the y rotation
        Parameters:
        v - Value to add to y
      • addRotZ

        public void addRotZ​(float v)
        Adding value to the z rotation
        Parameters:
        v - Value to add to z
      • setRotX

        public void setRotX​(float v)
        Setting value to the x rotation
        Parameters:
        v - Value to set to x
      • setRotY

        public void setRotY​(float v)
        Setting value to the y rotation
        Parameters:
        v - Value to set to y
      • setRotZ

        public void setRotZ​(float v)
        Setting value to the z rotation
        Parameters:
        v - Value to set to z
      • setFromRigidbody

        public void setFromRigidbody​(com.bulletphysics.dynamics.RigidBody rb)
        Setting transformation from rigidbody transformation
        Parameters:
        rb - Rigidbody to get transformation from
      • getPosX

        public float getPosX()
        Setting value to the x position
        Returns:
        x position
      • getPosY

        public float getPosY()
        Setting value to the y position
        Returns:
        y position
      • getPosZ

        public float getPosZ()
        Setting value to the z position
        Returns:
        z position
      • getScaleX

        public float getScaleX()
        Setting value to the x scale
        Returns:
        x scale
      • getScaleY

        public float getScaleY()
        Setting value to the y scale
        Returns:
        y scale
      • getScaleZ

        public float getScaleZ()
        Setting value to the z scale
        Returns:
        z scale
      • getRotX

        public float getRotX()
        Setting value to the x rotation
        Returns:
        x rotation
      • getRotY

        public float getRotY()
        Setting value to the y rotation
        Returns:
        y rotation
      • getRotZ

        public float getRotZ()
        Setting value to the z rotation
        Returns:
        z rotation
      • getTransMatArr

        public float[] getTransMatArr()
        Returns:
        Transformation matrix as array
      • getTransMat

        public javax.vecmath.Matrix4f getTransMat()
        Returns:
        Transformation matrix