Obi  6.4
Unified particle physics for Unity
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Obi.ObiPathFrame Struct Reference

Public Types

enum  Axis { X = 0, Y = 1, Z = 2 }
 

Public Member Functions

 ObiPathFrame (Vector3 position, Vector3 tangent, Vector3 normal, Vector3 binormal, Vector4 color, float thickness)
 
void Reset ()
 
void SetTwist (float twist)
 
void SetTwistAndTangent (float twist, Vector3 tangent)
 
void Transport (ObiPathFrame frame, float twist)
 
void Transport (Vector3 newPosition, Vector3 newTangent, float twist)
 
void Transport (Vector3 newPosition, Vector3 newTangent, Vector3 newNormal, float twist)
 
Matrix4x4 ToMatrix (Axis mainAxis)
 
void DebugDraw (float size)
 

Static Public Member Functions

static ObiPathFrame operator+ (ObiPathFrame c1, ObiPathFrame c2)
 
static ObiPathFrame operator* (float f, ObiPathFrame c)
 
static void WeightedSum (float w1, float w2, float w3, ref ObiPathFrame c1, ref ObiPathFrame c2, ref ObiPathFrame c3, ref ObiPathFrame sum)
 

Public Attributes

Vector3 position
 
Vector3 tangent
 
Vector3 normal
 
Vector3 binormal
 
Vector4 color
 
float thickness
 

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