TrackFlow Pro Documentation 1
Generate roller coasters, railroads, conveyors and more with a physics aware spline and meshing system.
Loading...
Searching...
No Matches
TrackFlowPro.Runtime.TrackFlowKnot Class Referencesealed

A single knot in your TrackFlow spline editor. "Curve Type" governs the segment between this knot and the next knot. More...

Public Member Functions

void EnsureLocalFrame ()
 Convert legacy WS frame into local storage once we have a Parent transform.
 TrackFlowKnot (TrackFlowSpline parent)
object Clone ()

Public Attributes

Vector3 positionLS = Vector3.zero
Vector3 T_LS = Vector3.forward
Vector3 N_LS = Vector3.right
Vector3 B_LS = Vector3.up
TrackFlowCurveType curveType = TrackFlowCurveType.Line
ArcOptions arc = new()
ClothoidOptions clothoid = new()
CurveSpecOptions curveSpec = new()
TrackModifierOptions trackModOpts = new()
Vector3 bezierInOffsetLS = Vector3.left * 0.8f
Vector3 bezierOutOffsetLS = Vector3.right * 0.8f
TrackFlowSpline Parent

Properties

Vector3 positionWS [get]
Vector3 T_WS [get, set]
Vector3 N_WS [get, set]
Vector3 B_WS [get, set]

Private Member Functions

void OrthonormalizeLocal ()

Private Attributes

Vector3 _legacyT_WS = Vector3.forward
Vector3 _legacyN_WS = Vector3.right
Vector3 _legacyB_WS = Vector3.up
int _frameSpaceVersion = 0

Static Private Attributes

const int FrameSpace_Local = 1

Detailed Description

A single knot in your TrackFlow spline editor. "Curve Type" governs the segment between this knot and the next knot.

Constructor & Destructor Documentation

◆ TrackFlowKnot()

TrackFlowPro.Runtime.TrackFlowKnot.TrackFlowKnot ( TrackFlowSpline parent)

Member Function Documentation

◆ Clone()

object TrackFlowPro.Runtime.TrackFlowKnot.Clone ( )

◆ EnsureLocalFrame()

void TrackFlowPro.Runtime.TrackFlowKnot.EnsureLocalFrame ( )

Convert legacy WS frame into local storage once we have a Parent transform.

◆ OrthonormalizeLocal()

void TrackFlowPro.Runtime.TrackFlowKnot.OrthonormalizeLocal ( )
private

Member Data Documentation

◆ _frameSpaceVersion

int TrackFlowPro.Runtime.TrackFlowKnot._frameSpaceVersion = 0
private

◆ _legacyB_WS

Vector3 TrackFlowPro.Runtime.TrackFlowKnot._legacyB_WS = Vector3.up
private

◆ _legacyN_WS

Vector3 TrackFlowPro.Runtime.TrackFlowKnot._legacyN_WS = Vector3.right
private

◆ _legacyT_WS

Vector3 TrackFlowPro.Runtime.TrackFlowKnot._legacyT_WS = Vector3.forward
private

◆ arc

ArcOptions TrackFlowPro.Runtime.TrackFlowKnot.arc = new()

◆ B_LS

Vector3 TrackFlowPro.Runtime.TrackFlowKnot.B_LS = Vector3.up

◆ bezierInOffsetLS

Vector3 TrackFlowPro.Runtime.TrackFlowKnot.bezierInOffsetLS = Vector3.left * 0.8f

◆ bezierOutOffsetLS

Vector3 TrackFlowPro.Runtime.TrackFlowKnot.bezierOutOffsetLS = Vector3.right * 0.8f

◆ clothoid

ClothoidOptions TrackFlowPro.Runtime.TrackFlowKnot.clothoid = new()

◆ curveSpec

CurveSpecOptions TrackFlowPro.Runtime.TrackFlowKnot.curveSpec = new()

◆ curveType

TrackFlowCurveType TrackFlowPro.Runtime.TrackFlowKnot.curveType = TrackFlowCurveType.Line

◆ FrameSpace_Local

const int TrackFlowPro.Runtime.TrackFlowKnot.FrameSpace_Local = 1
staticprivate

◆ N_LS

Vector3 TrackFlowPro.Runtime.TrackFlowKnot.N_LS = Vector3.right

◆ Parent

TrackFlowSpline TrackFlowPro.Runtime.TrackFlowKnot.Parent

◆ positionLS

Vector3 TrackFlowPro.Runtime.TrackFlowKnot.positionLS = Vector3.zero

◆ T_LS

Vector3 TrackFlowPro.Runtime.TrackFlowKnot.T_LS = Vector3.forward

◆ trackModOpts

TrackModifierOptions TrackFlowPro.Runtime.TrackFlowKnot.trackModOpts = new()

Property Documentation

◆ B_WS

Vector3 TrackFlowPro.Runtime.TrackFlowKnot.B_WS
getset

◆ N_WS

Vector3 TrackFlowPro.Runtime.TrackFlowKnot.N_WS
getset

◆ positionWS

Vector3 TrackFlowPro.Runtime.TrackFlowKnot.positionWS
get

◆ T_WS

Vector3 TrackFlowPro.Runtime.TrackFlowKnot.T_WS
getset

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