EdgeMultiplay.Util Class Reference

Static Public Member Functions

static float[] GetPositionData (Transform transformComponent)
 Extracts position data as float array [3] from a transform component More...
 
static float[] GetRotationEulerData (Transform transformComponent)
 Extracts rotation euler's angles as float array [3] from a transform component More...
 
static float[] GetPositionAndRotationData (Transform transformComponent)
 Extracts position and rotation euler's angles as float array [6] from a transform component More...
 
static float[] GetLocalPositionData (Transform transformComponent)
 Extracts local position data as float array [3] from a transform component More...
 
static float[] GetLocalRotationData (Transform transformComponent)
 Extracts local rotation euler's angles as float array [3] from a transform component More...
 
static float[] GetLocalPositionAndRotationData (Transform transformComponent)
 Extracts local position and local rotation euler's angles as float array [6] from a transform component More...
 
static void SetLocalPostion (Transform transformComponent, Vector3 targetLocalPosition)
 Sets the local position of the supplied transform component to the supplied targetLocalPositon More...
 
static void SetLocalRotation (Transform transformComponent, Vector3 targetRotationEulers)
 Sets the local rotation of the supplied transform component to the supplied targetLocalRotation euler's angles More...
 
static float[] ConvertVector3ToFloatArray (Vector3 vector3)
 Converts a Vector3 to a float array of size 3 More...
 
static float[] ConvertQuaternionToFloatArray (Quaternion quaternion)
 Converts a quaternion to a float array of size 4 -> (x,y,z,w) More...
 
static Vector3 ConvertFloatArrayToVector3 (float[] floatArray, int startIndex=0)
 Returns a Vector 3 from the supplied floatArray starting from the supplied startIndex, your floatArray size must be larger than 2 More...
 
static Quaternion ConvertFloatArrayToQuaternion (float[] floatArray, int startIndex=0)
 Returns a Quaternion from the supplied floatArray starting from the supplied startIndex, your floatArray size must be larger than 3 More...