wHiteRabbiT-sTudio Framework
wHiteRabbiT.Unity.Simulation.PhysIcs Class Reference

Static Public Member Functions

static Vector3 ForceSpring (Vector3 A, float length, float K, Vector3 B)
 Spring force exerced by B to A. More...
 
static Vector3 Kinematics (Vector3 Pos, ref Vector3 Speed, ref Vector3 Acc, Vector3 SFext, float dt, float mass=1)
 
static Vector3 KinematicsVerlet (Vector3 Pos, Vector3 PosMinus1, ref Vector3 Acc, Vector3 SFext, float dt, float olddt, float mass=1, float friction=0)
 
static Vector3 KinematicsVerlet (Vector3 Pos, Vector3 PosMinus1, Vector3 PosMinus2, ref Vector3 Acc, Vector3 SFext, float dt, float olddt, float mass=1, float friction=0)
 
static Quaternion KinematicsVerlet (Quaternion Pos, Quaternion PosMinus1, Quaternion SFext, float dt, float mass=1, float friction=0)
 
static void Constraint (ref Vector3 A, ref Vector3 B, float Length)
 

Properties

static float SafeTimeScale [get, set]
 

Member Function Documentation

static void wHiteRabbiT.Unity.Simulation.PhysIcs.Constraint ( ref Vector3  A,
ref Vector3  B,
float  Length 
)
static
static Vector3 wHiteRabbiT.Unity.Simulation.PhysIcs.ForceSpring ( Vector3  A,
float  length,
float  K,
Vector3  B 
)
static

Spring force exerced by B to A.

Returns
The spring.
Parameters
AA position
lengthDesired length
KSpring constant
BB position
static Vector3 wHiteRabbiT.Unity.Simulation.PhysIcs.Kinematics ( Vector3  Pos,
ref Vector3  Speed,
ref Vector3  Acc,
Vector3  SFext,
float  dt,
float  mass = 1 
)
static
static Vector3 wHiteRabbiT.Unity.Simulation.PhysIcs.KinematicsVerlet ( Vector3  Pos,
Vector3  PosMinus1,
ref Vector3  Acc,
Vector3  SFext,
float  dt,
float  olddt,
float  mass = 1,
float  friction = 0 
)
static
static Vector3 wHiteRabbiT.Unity.Simulation.PhysIcs.KinematicsVerlet ( Vector3  Pos,
Vector3  PosMinus1,
Vector3  PosMinus2,
ref Vector3  Acc,
Vector3  SFext,
float  dt,
float  olddt,
float  mass = 1,
float  friction = 0 
)
static
static Quaternion wHiteRabbiT.Unity.Simulation.PhysIcs.KinematicsVerlet ( Quaternion  Pos,
Quaternion  PosMinus1,
Quaternion  SFext,
float  dt,
float  mass = 1,
float  friction = 0 
)
static

Property Documentation

float wHiteRabbiT.Unity.Simulation.PhysIcs.SafeTimeScale
staticgetset

The documentation for this class was generated from the following file: