GameTransformclass
Methods4
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.
void—public void ClearLerp()
Obsolete: Use ClearInterpolation
void—public System.IDisposable DisableProxy()
Disable the proxy temporarily
IDisposable—public void LerpTo(Transform target, float frac)
Performs linear interpolation between this and the given transform.
| Parameter | Type | Description |
|---|---|---|
| target | Transform | The destination transform. |
| frac | float | Fraction, where 0 would return this, 0.5 would return a point between this and given transform, and 1 would return the given transform. |
void—No results match this filter.
Properties11
Showing 11 properties
public Sandbox.GameObject Sandbox.GameTransform.GameObject { get; set; }
public Transform Sandbox.GameTransform.InterpolatedLocal { get; set; }
The current interpolated local transform.
public Transform Sandbox.GameTransform.Local { get; set; }
The current local transform.
public Vector3 Sandbox.GameTransform.LocalPosition { get; set; }
Position in local coordinates.
Obsolete: Use LocalPosition instead of Transform.LocalPosition
public Rotation Sandbox.GameTransform.LocalRotation { get; set; }
Rotation in local coordinates.
Obsolete: Use LocalRotation instead of Transform.LocalRotation
public Vector3 Sandbox.GameTransform.LocalScale { get; set; }
Scale in local coordinates.
Obsolete: Use LocalScale instead of Transform.LocalScale
public Vector3 Sandbox.GameTransform.Position { get; set; }
The position in world coordinates.
Obsolete: Use WorldPosition instead of Transform.Position
public Sandbox.TransformProxy Sandbox.GameTransform.Proxy { get; set; }
public Rotation Sandbox.GameTransform.Rotation { get; set; }
The rotation in world coordinates.
Obsolete: Use WorldRotation instead of Transform.Rotation
public Vector3 Sandbox.GameTransform.Scale { get; set; }
The scale in world coordinates.
Obsolete: Use WorldScale instead of Transform.Scale
public Transform Sandbox.GameTransform.World { get; set; }
The current world transform.
No results match this filter.