Class ViewmodelSceneNode.ViewmodelLag
Namespace: ValveResourceFormat.Renderer.SceneNodes
Assembly: Renderer.dll
Viewmodel sway.
csharp
public sealed class ViewmodelSceneNode.ViewmodelLagInheritance
object ← ViewmodelSceneNode.ViewmodelLag
Properties
SwayInterp
How far back the viewmodel trails the view, in seconds (cl_wpn_sway_interp).
csharp
public float SwayInterp { get; set; }Property Value
SwayScale
How far the trailing view angle pushes the viewmodel (cl_wpn_sway_scale).
csharp
public float SwayScale { get; set; }Property Value
Methods
Calculate(float, float)
Records this frame's view yaw and returns the sway offset, in viewmodel space (forward, left, up).
csharp
public Vector3 Calculate(float yaw, float currentTime)Parameters
yaw float
Current view yaw in radians.
currentTime float
Seconds since startup.

