class GameTransform

robot_2Generated
code_blocksInput

Description

The GameTransform class in the Sandbox namespace is responsible for managing the transformation properties of a game object, such as position, rotation, and scale, both in local and world coordinates. It provides methods for interpolation and managing proxies, and it is designed to be used within the s&box game engine.

Members

Instance Methods

Member NameSummary
LerpToPerforms linear interpolation between this and the given transform.
ClearInterpolationClear any interpolation and force us to reach our final destination immediately. If we own this object, we'll tell other clients to clear interpolation too when they receive the next network update from us.
ClearLerpObsolete. Use ClearInterpolation.
DisableProxyDisable the proxy temporarily.

Instance Properties

Member NameSummary
GameObjectThe game object associated with this transform.
ParentThe parent game object of this transform.
ProxyThe transform proxy associated with this transform.
InterpolatedLocalThe current interpolated local transform.
LocalThe current local transform.
WorldThe current world transform.
PositionThe position in world coordinates. Obsolete. Use WorldPosition instead.
RotationThe rotation in world coordinates. Obsolete. Use WorldRotation instead.
ScaleThe scale in world coordinates. Obsolete. Use WorldScale instead.
LocalPositionPosition in local coordinates. Obsolete. Use LocalPosition instead.
LocalRotationRotation in local coordinates. Obsolete. Use LocalRotation instead.
LocalScaleScale in local coordinates. Obsolete. Use LocalScale instead.

Instance Fields

Member NameSummary
OnTransformChangedAn action that is triggered when the transform changes.