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 voidaddPosX(float v)Adding value to the x positionvoidaddPosY(float v)Adding value to the y positionvoidaddPosZ(float v)Adding value to the z positionvoidaddRotX(float v)Adding value to the x rotationvoidaddRotY(float v)Adding value to the y rotationvoidaddRotZ(float v)Adding value to the z rotationvoidaddScaleX(float v)Adding value to the x scalevoidaddScaleY(float v)Adding value to the y scalevoidaddScaleZ(float v)Adding value to the z scalefloatgetPosX()Setting value to the x positionfloatgetPosY()Setting value to the y positionfloatgetPosZ()Setting value to the z positionfloatgetRotX()Setting value to the x rotationfloatgetRotY()Setting value to the y rotationfloatgetRotZ()Setting value to the z rotationfloatgetScaleX()Setting value to the x scalefloatgetScaleY()Setting value to the y scalefloatgetScaleZ()Setting value to the z scalejavax.vecmath.Matrix4fgetTransMat()float[]getTransMatArr()voidsetFromRigidbody(com.bulletphysics.dynamics.RigidBody rb)Setting transformation from rigidbody transformationvoidsetPosX(float v)Setting value to the x positionvoidsetPosY(float v)Setting value to the y positionvoidsetPosZ(float v)Setting value to the z positionvoidsetRotX(float v)Setting value to the x rotationvoidsetRotY(float v)Setting value to the y rotationvoidsetRotZ(float v)Setting value to the z rotationvoidsetScaleX(float v)Setting value to the x scalevoidsetScaleY(float v)Setting value to the y scalevoidsetScaleZ(float v)Setting value to the z scaleprotected Stringsync()protected voidsync(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:
syncin classSyncronized
-
sync
protected String sync()
- Specified by:
syncin classSyncronized
-
-