public CompressedElement Compress(GenericX uncompressed) { if (crusher.TRSType == TRSType.Quaternion) { return(crusher.Compress((Quaternion)uncompressed)); } else { return(crusher.Compress((Vector3)uncompressed)); } }
public void Compress(CompressedElement target, GenericX uncompressed) { if (crusher.TRSType == TRSType.Quaternion) { crusher.Compress(target, (Quaternion)uncompressed); } else { crusher.Compress(target, (Vector3)uncompressed); } }
public void ModifyFrame(UpdateType _updateType, BitCullingLevel _rootSendType, Vector3 _pos, Quaternion _rot, float _packetArrivedTime) { updateType = _updateType; rootBitCullLevel = _rootSendType; rootPos = _pos; rootPosCrusher.Compress(compPos, _pos); if (nst.rootRotationElement.crusher.TRSType == TRSType.Euler) { RootRot = _rot.eulerAngles; } else { RootRot = _rot; } //nst.rootRotationElement.Compress(rot, _rot); packetArriveTime = _packetArrivedTime; }