DefaultTransformΒΆ
Warning
This documentation is for an implementation of a service. This class is not meant to be used directly; instead use the Protogame.ITransform service via dependency injection to access this functionality.
Information documented here may not be up to date.
-
class
DefaultTransform
: System.Object, Protogame.ITransform The default implementation of T:Protogame.ITransform.
-
Vector3
LocalPosition
-
Quaternion
LocalRotation
-
Vector3
LocalScale
-
readonly Matrix
LocalMatrix
-
readonly Matrix
LocalMatrixWithoutScale
-
readonly bool
IsSRTMatrix
-
public void
add_Modified
(System.EventHandler value) Parameters: - value (System.EventHandler) –
-
public void
remove_Modified
(System.EventHandler value) Parameters: - value (System.EventHandler) –
-
public void
Assign
(Protogame.ITransform from) Parameters: - from (Protogame.ITransform) –
-
public void
ResetAsSRTMatrix
()
-
public void
SetFromSRTMatrix
(Vector3 localPosition, Quaternion localRotation, Vector3 localScale) Parameters: - localPosition (Microsoft.Xna.Framework.Vector3) –
- localRotation (Microsoft.Xna.Framework.Quaternion) –
- localScale (Microsoft.Xna.Framework.Vector3) –
-
public Protogame.NetworkTransform
SerializeToNetwork
()
-
public void
ResetAsCustomMatrix
()
-
public void
SetFromCustomMatrix
(Matrix localMatrix) Parameters: - localMatrix (Microsoft.Xna.Framework.Matrix) –
-
public string
ToString
()
-
Vector3