Summary

A struct containing a position, rotation and scale. This is commonly used in engine to describe entity position, bone position and scene object position.

Fields

Position Position of the transform.
Rotation Rotation of this transform.
Scale Scale of the transform. Does not itself scale Transform.Position or Transform.Rotation.

Properties

Backward
Down
Forward
ForwardRay Return a ray from this transform, which goes from the center along the Forward
IsValid Returns true if position, scale and rotation are valid
Left
Right
UniformScale A uniform scale component. Generally the scale is uniform, and we'll just access the .x component.
Up

Methods

Add
AlmostEqual
LerpTo
Mirror
NormalToLocal
NormalToWorld
PointToLocal
PointToWorld
RotateAround
RotationToLocal
RotationToWorld
ToLocal
ToWorld
WithPosition
WithRotation
WithScale

Static Fields

Zero Represents a zero transform, that being, a transform with scale of 1, position of Vector3.Zero and rotation of Rotation.Identity.

Static Methods

Concat
Lerp
Parse
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.