Sites

Menu

TransformUtils Class

Namespace: Improbable.Gdk.TransformSynchronization
GDK package: TransformSynchronization
Source

A collection of utility functions for use with the Transform Synchronization Feature Module.


Static Methods

CreateTransformSnapshot Source
TransformInternal.Snapshot CreateTransformSnapshot(Vector3 location = default, Quaternion rotation = default, Vector3 velocity = default)

Utility method for creating a TransformInternal Snapshot.

Parameters
  • Vector3 location : The location of an entity, given as a Unity Vector3.
  • Quaternion rotation : The rotation of an entity, given as a Unity Quaternion.
  • Vector3 velocity : The velocity of an entity, given as a Unity Vector3.

Notes:
  • This method populates a TransformInternal with compressed representations of the given arguments.
ToCoordinates Source
Coordinates ToCoordinates(this Vector3 unityVector)

Extension method for converting a Unity Vector to a Coordinates value.

Parameters
  • this Vector3 unityVector :
ToFixedPointVector3 Source
FixedPointVector3 ToFixedPointVector3(this Vector3 unityVector)

Extension method for converting a Unity Vector to a FixedPointVector3.

Parameters
  • this Vector3 unityVector :
ToCompressedQuaternion Source
CompressedQuaternion ToCompressedQuaternion(this Quaternion quaternion)

Extension method for converting a Quaternion to a CompressedQuaternion.

Parameters
  • this Quaternion quaternion :

Search results

Was this page helpful?

Thanks for letting us know!

Thanks for your feedback

Need more help? Ask on the forums