Table of Contents

Class WhunkCameraSpring

Namespace
Global
Assembly
Assembly-CSharp.dll
public class WhunkCameraSpring : MonoBehaviour
Inheritance
WhunkCameraSpring

Constructors

WhunkCameraSpring()

public WhunkCameraSpring()

Fields

localDamping

public float localDamping

Field Value

float

particlePosition

public Vector3 particlePosition

Field Value

Vector3

particleVelocity

public Vector3 particleVelocity

Field Value

Vector3

sphereCenter

public Vector3 sphereCenter

Field Value

Vector3

sphereRadius

public float sphereRadius

Field Value

float

springAppoachSpeed

public float springAppoachSpeed

Field Value

float

worldDamping

public float worldDamping

Field Value

float

Methods

GetSphereCenterWS()

public Vector3 GetSphereCenterWS()

Returns

Vector3

Reset()

public void Reset()

ResetPosition()

public void ResetPosition()

ResetVelocity()

public void ResetVelocity()

SimulateSpringBall(ref Vector3, ref Vector3, Vector3, Vector3, float, float, float, float, float)

public static void SimulateSpringBall(ref Vector3 particlePosition, ref Vector3 particleVelocity, Vector3 sphereCenter, Vector3 sphereVelocity, float sphereRadius, float deltaTime, float springAppoachSpeed = 0.95, float localDamping = 0.1, float worldDamping = 0)

Parameters

particlePosition Vector3
particleVelocity Vector3
sphereCenter Vector3
sphereVelocity Vector3
sphereRadius float
deltaTime float
springAppoachSpeed float
localDamping float
worldDamping float

Tick(float)

public void Tick(float deltaTime)

Parameters

deltaTime float