Table of Contents

Struct OneDPhysicsSpring

Namespace
Zorro.Core
Assembly
Zorro.Core.Runtime.dll
[Serializable]
public struct OneDPhysicsSpring : IPhysicsSpring, IOneDimension
Implements
Inherited Members
Extension Methods

Properties

Current

public float Current { get; }

Property Value

float

Drag

public float Drag { get; set; }

Property Value

float

Spring

public float Spring { get; set; }

Property Value

float

Target

public float Target { get; set; }

Property Value

float

Velocity

public float Velocity { get; }

Property Value

float

Methods

AddForce(float)

public void AddForce(float force)

Parameters

force float

FixedUpdate()

public void FixedUpdate()

SetCurrent(float)

public void SetCurrent(float current)

Parameters

current float

SetVelocity(float)

public void SetVelocity(float velocity)

Parameters

velocity float

Update()

public void Update()