public class ObjectStateProtocol
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
idBitSize |
com.simsilica.mathd.bits.Vec3Bits |
positionBits |
com.simsilica.mathd.bits.QuatBits |
rotationBits |
int |
zoneIdBitSize |
Constructor and Description |
---|
ObjectStateProtocol(int zoneIdBitSize,
int idBitSize,
com.simsilica.mathd.bits.Vec3Bits posBits,
com.simsilica.mathd.bits.QuatBits rotBits) |
Modifier and Type | Method and Description |
---|---|
int |
getEstimatedBitSize(ObjectState state) |
com.simsilica.mathd.Vec3d |
getPosition(ObjectState state) |
com.simsilica.mathd.Quatd |
getRotation(ObjectState state) |
ObjectState |
readBits(BitInputStream in) |
void |
setPosition(ObjectState state,
com.simsilica.mathd.Vec3d pos) |
void |
setRotation(ObjectState state,
com.simsilica.mathd.Quatd rot) |
void |
writeBits(ObjectState state,
BitOutputStream out) |
public int zoneIdBitSize
public int idBitSize
public com.simsilica.mathd.bits.Vec3Bits positionBits
public com.simsilica.mathd.bits.QuatBits rotationBits
public ObjectStateProtocol(int zoneIdBitSize, int idBitSize, com.simsilica.mathd.bits.Vec3Bits posBits, com.simsilica.mathd.bits.QuatBits rotBits)
public void setPosition(ObjectState state, com.simsilica.mathd.Vec3d pos)
public com.simsilica.mathd.Vec3d getPosition(ObjectState state)
public void setRotation(ObjectState state, com.simsilica.mathd.Quatd rot)
public com.simsilica.mathd.Quatd getRotation(ObjectState state)
public int getEstimatedBitSize(ObjectState state)
public void writeBits(ObjectState state, BitOutputStream out) throws java.io.IOException
java.io.IOException
public ObjectState readBits(BitInputStream in) throws java.io.IOException
java.io.IOException