![]() |
Mercury Messaging
Documentation for the Mercury Messaging Framework
|
A struct containing the translation, rotation and scale of a transformation. More...
Public Member Functions | |
MmTransform (Vector3 iTranslation, Vector3 iScale, Quaternion iRotation) | |
Create an MmTransform from translation, rotation, and scale directly. More... | |
MmTransform (Transform iTransform, bool useGlobal) | |
Create an MmTransform from a UnityEngine.Transform. More... | |
MmTransform (MmTransform iMmTransform) | |
Copy constructor for MmTransform. More... | |
void | Deserialize (NetworkReader reader) |
Deserialize the MmTransform More... | |
void | Serialize (NetworkWriter writer) |
Serialize the MmTransform More... | |
Public Attributes | |
Vector3 | Translation |
Translation. More... | |
Vector3 | Scale |
Scale. More... | |
Quaternion | Rotation |
Rotation. More... | |
A struct containing the translation, rotation and scale of a transformation.
MercuryMessaging.MmTransform.MmTransform | ( | Vector3 | iTranslation, |
Vector3 | iScale, | ||
Quaternion | iRotation | ||
) |
Create an MmTransform from translation, rotation, and scale directly.
iTranslation | |
iScale | |
iRotation |
MercuryMessaging.MmTransform.MmTransform | ( | Transform | iTransform, |
bool | useGlobal | ||
) |
Create an MmTransform from a UnityEngine.Transform.
iTransform | UnityEngine.Transform component. |
useGlobal | Use Global or Local transform values. |
MercuryMessaging.MmTransform.MmTransform | ( | MmTransform | iMmTransform | ) |
Copy constructor for MmTransform.
iMmTransform | MmTransform to be copied. |
void MercuryMessaging.MmTransform.Deserialize | ( | NetworkReader | reader | ) |
Deserialize the MmTransform
reader | UNET based deserializer object |
void MercuryMessaging.MmTransform.Serialize | ( | NetworkWriter | writer | ) |
Serialize the MmTransform
writer | UNET based serializer |
Quaternion MercuryMessaging.MmTransform.Rotation |
Rotation.
Vector3 MercuryMessaging.MmTransform.Scale |
Scale.
Vector3 MercuryMessaging.MmTransform.Translation |
Translation.