s&box docs

public class Sandbox.GameTransform

Methods

Showing 4 methods

public void ClearInterpolation()

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.

public void ClearLerp()Obsolete

Obsolete: Use ClearInterpolation

public System.IDisposable DisableProxy()

Disable the proxy temporarily

public void LerpTo(Transform target, float frac)

Performs linear interpolation between this and the given transform.

Parameters

  • target: The destination transform.
  • frac: Fraction, where 0 would return this, 0.5 would return a point between this and given transform, and 1 would return the given transform.

Properties

Showing 11 properties

public Transform Sandbox.GameTransform.InterpolatedLocal { get; set; }

The current interpolated local transform.

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

Position in local coordinates.

Obsolete: Use LocalPosition instead of Transform.LocalPosition

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

Rotation in local coordinates.

Obsolete: Use LocalRotation instead of Transform.LocalRotation

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

Scale in local coordinates.

Obsolete: Use LocalScale instead of Transform.LocalScale

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

The position in world coordinates.

Obsolete: Use WorldPosition instead of Transform.Position

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

The rotation in world coordinates.

Obsolete: Use WorldRotation instead of Transform.Rotation

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

The scale in world coordinates.

Obsolete: Use WorldScale instead of Transform.Scale

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.GameTransform

On this page