GameTransformclass

objectGameTransform
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public class Sandbox.GameTransform

Methods4

Showing 4 methods

public void ClearInterpolation()PUBLIC

Clear 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.

Returns:void

public void ClearLerp()PUBLICOBSOLETE

Obsolete: Use ClearInterpolation

Returns:void

public System.IDisposable DisableProxy()PUBLIC

Disable the proxy temporarily

Returns:IDisposable

public void LerpTo(Transform target, float frac)PUBLIC

Performs linear interpolation between this and the given transform.

ParameterTypeDescription
targetTransformThe destination transform.
fracfloatFraction, where 0 would return this, 0.5 would return a point between this and given transform, and 1 would return the given transform.
Returns:void

Properties11

Showing 11 properties

public Vector3 Sandbox.GameTransform.LocalPosition { get; set; }PUBLICGETSETOBSOLETE

Position in local coordinates.

Obsolete: Use LocalPosition instead of Transform.LocalPosition

Returns:Vector3

public Rotation Sandbox.GameTransform.LocalRotation { get; set; }PUBLICGETSETOBSOLETE

Rotation in local coordinates.

Obsolete: Use LocalRotation instead of Transform.LocalRotation

Returns:Rotation

public Vector3 Sandbox.GameTransform.LocalScale { get; set; }PUBLICGETSETOBSOLETE

Scale in local coordinates.

Obsolete: Use LocalScale instead of Transform.LocalScale

Returns:Vector3

public Vector3 Sandbox.GameTransform.Position { get; set; }PUBLICGETSETOBSOLETE

The position in world coordinates.

Obsolete: Use WorldPosition instead of Transform.Position

Returns:Vector3

public Rotation Sandbox.GameTransform.Rotation { get; set; }PUBLICGETSETOBSOLETE

The rotation in world coordinates.

Obsolete: Use WorldRotation instead of Transform.Rotation

Returns:Rotation

public Vector3 Sandbox.GameTransform.Scale { get; set; }PUBLICGETSETOBSOLETE

The scale in world coordinates.

Obsolete: Use WorldScale instead of Transform.Scale

Returns:Vector3

On this page