Class SyncTransformation
- java.lang.Object
-
- de.coreengine.network.Syncronized
-
- de.coreengine.network.syncronized.SyncTransformation
-
public class SyncTransformation extends Syncronized
Transformation that can be syncronized in a network- Author:
- Darius Dinger
-
-
Constructor Summary
Constructors Constructor Description SyncTransformation(String tag)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPosX(float v)
Adding value to the x positionvoid
addPosY(float v)
Adding value to the y positionvoid
addPosZ(float v)
Adding value to the z positionvoid
addRotX(float v)
Adding value to the x rotationvoid
addRotY(float v)
Adding value to the y rotationvoid
addRotZ(float v)
Adding value to the z rotationvoid
addScaleX(float v)
Adding value to the x scalevoid
addScaleY(float v)
Adding value to the y scalevoid
addScaleZ(float v)
Adding value to the z scalefloat
getPosX()
Setting value to the x positionfloat
getPosY()
Setting value to the y positionfloat
getPosZ()
Setting value to the z positionfloat
getRotX()
Setting value to the x rotationfloat
getRotY()
Setting value to the y rotationfloat
getRotZ()
Setting value to the z rotationfloat
getScaleX()
Setting value to the x scalefloat
getScaleY()
Setting value to the y scalefloat
getScaleZ()
Setting value to the z scalejavax.vecmath.Matrix4f
getTransMat()
float[]
getTransMatArr()
void
setFromRigidbody(com.bulletphysics.dynamics.RigidBody rb)
Setting transformation from rigidbody transformationvoid
setPosX(float v)
Setting value to the x positionvoid
setPosY(float v)
Setting value to the y positionvoid
setPosZ(float v)
Setting value to the z positionvoid
setRotX(float v)
Setting value to the x rotationvoid
setRotY(float v)
Setting value to the y rotationvoid
setRotZ(float v)
Setting value to the z rotationvoid
setScaleX(float v)
Setting value to the x scalevoid
setScaleY(float v)
Setting value to the y scalevoid
setScaleZ(float v)
Setting value to the z scaleprotected String
sync()
protected void
sync(String sync)
-
Methods inherited from class de.coreengine.network.Syncronized
change, syncronize
-
-
-
-
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
-
sync
protected void sync(String sync)
- Specified by:
sync
in classSyncronized
-
sync
protected String sync()
- Specified by:
sync
in classSyncronized
-
-