C# 클래스 TrackBuildRTrack, ProjectPhoenix

Track BuildR Track holds all the point and curve data It is responsible for holding other track based data It also generates all the curve data in Recalculate Data which is used in Generator class It has some functions to allow other scripts to access basic track information
상속: MonoBehaviour
파일 보기 프로젝트 열기: Alx666/ProjectPhoenix 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
additionalBumperHeight float
assignedPoints int
baseTransform Transform
bumperAngleThresold float
bumperHeight float
bumperMode BumperModes
bumperWidth float
conformAccuracy float
diagramFilepath string
diagramGO GameObject
diagramMaterial Material
diagramMesh Mesh
drawMode bool
editMeshResolution float
includeCollider bool
includeColliderRoof bool
jumpHeight float
lastPolycount int
loopPoints int
loopRadius float
maxJumpLength float
mergeCurve AnimationCurve
mergeTerrain Terrain
scale float
scalePointA Vector3
scalePointB Vector3
showDiagram bool
terrainAccuracy float
terrainMergeMargin float
terrainMergeWidth float
trackBumpers bool
trackColliderWallHeight float
twistAngle float
twistPoints int
twistRadius float

공개 메소드들

메소드 설명
AddPoint ( Vector3 position ) : TrackBuildRPoint,
AddPoint ( TrackBuildRPoint, point ) : void
AddTexture ( ) : void
CheckDiagram ( ) : void
Clear ( ) : void
FromKML ( string coordinates ) : void
FromXML ( XmlNode node ) : void
GenerateSecondaryUVSet ( ) : void

/// Mark the pit lane as dirty so it will be recalculated/rebuilt ///

/// Set pit lane point data to rerender ///

GetLastPointIndex ( float trackPercentage ) : int
GetLeftBoundaryPosition ( float t ) : Vector3
GetNearestPoint ( Vector3 fromPostition ) : float
GetNearestPointIndex ( float trackPercentage ) : int
GetNextPointIndex ( float trackPercentage ) : int
GetPoint ( int index ) : TrackBuildRPoint,
GetRightBoundaryPosition ( float t ) : Vector3
GetTexturesArray ( ) : TrackBuildRTexture[]
GetTrackCross ( float t ) : Vector3
GetTrackCrownAngle ( float t ) : float
GetTrackDirection ( float t ) : Vector3
GetTrackPercentage ( TrackBuildRPoint, point ) : float
GetTrackPercentage ( int pointIndex ) : float
GetTrackPosition ( float t ) : Vector3
GetTrackUp ( float t ) : Quaternion
GetTrackWidth ( float t ) : float
InitTextures ( ) : void
InsertPoint ( int index ) : TrackBuildRPoint,
InsertPoint ( TrackBuildRPoint, point, int index ) : void
OnEnable ( ) : void
OptimseMeshes ( ) : void
ReRenderTrack ( ) : void

Set all point data to rerender

RecalculateCurves ( ) : void
RemovePoint ( TrackBuildRPoint point ) : void
RemoveTexture ( TrackBuildRTexture texture ) : void
SetTrackDirty ( ) : void

Mark the entire track as dirty so it will be recalculated/rebuilt

Texture ( int index ) : TrackBuildRTexture
ToXML ( ) : string
TrackRendered ( ) : void

Set all point data as rendered

this ( int index ) : TrackBuildRPoint

비공개 메소드들

메소드 설명
SignedAngle ( Vector3 from, Vector3 to, Vector3 up ) : float

메소드 상세

AddPoint() 공개 메소드

public AddPoint ( Vector3 position ) : TrackBuildRPoint,
position Vector3
리턴 TrackBuildRPoint,

AddPoint() 공개 메소드

public AddPoint ( TrackBuildRPoint, point ) : void
point TrackBuildRPoint,
리턴 void

AddTexture() 공개 메소드

public AddTexture ( ) : void
리턴 void

CheckDiagram() 공개 메소드

public CheckDiagram ( ) : void
리턴 void

Clear() 공개 메소드

public Clear ( ) : void
리턴 void

FromKML() 공개 메소드

public FromKML ( string coordinates ) : void
coordinates string
리턴 void

FromXML() 공개 메소드

public FromXML ( XmlNode node ) : void
node XmlNode
리턴 void

GenerateSecondaryUVSet() 공개 메소드

/// Mark the pit lane as dirty so it will be recalculated/rebuilt /// /// Set pit lane point data to rerender ///
public GenerateSecondaryUVSet ( ) : void
리턴 void

GetLastPointIndex() 공개 메소드

public GetLastPointIndex ( float trackPercentage ) : int
trackPercentage float
리턴 int

GetLeftBoundaryPosition() 공개 메소드

public GetLeftBoundaryPosition ( float t ) : Vector3
t float
리턴 Vector3

GetNearestPoint() 공개 메소드

public GetNearestPoint ( Vector3 fromPostition ) : float
fromPostition Vector3
리턴 float

GetNearestPointIndex() 공개 메소드

public GetNearestPointIndex ( float trackPercentage ) : int
trackPercentage float
리턴 int

GetNextPointIndex() 공개 메소드

public GetNextPointIndex ( float trackPercentage ) : int
trackPercentage float
리턴 int

GetPoint() 공개 메소드

public GetPoint ( int index ) : TrackBuildRPoint,
index int
리턴 TrackBuildRPoint,

GetRightBoundaryPosition() 공개 메소드

public GetRightBoundaryPosition ( float t ) : Vector3
t float
리턴 Vector3

GetTexturesArray() 공개 메소드

public GetTexturesArray ( ) : TrackBuildRTexture[]
리턴 TrackBuildRTexture[]

GetTrackCross() 공개 메소드

public GetTrackCross ( float t ) : Vector3
t float
리턴 Vector3

GetTrackCrownAngle() 공개 메소드

public GetTrackCrownAngle ( float t ) : float
t float
리턴 float

GetTrackDirection() 공개 메소드

public GetTrackDirection ( float t ) : Vector3
t float
리턴 Vector3

GetTrackPercentage() 공개 메소드

public GetTrackPercentage ( TrackBuildRPoint, point ) : float
point TrackBuildRPoint,
리턴 float

GetTrackPercentage() 공개 메소드

public GetTrackPercentage ( int pointIndex ) : float
pointIndex int
리턴 float

GetTrackPosition() 공개 메소드

public GetTrackPosition ( float t ) : Vector3
t float
리턴 Vector3

GetTrackUp() 공개 메소드

public GetTrackUp ( float t ) : Quaternion
t float
리턴 Quaternion

GetTrackWidth() 공개 메소드

public GetTrackWidth ( float t ) : float
t float
리턴 float

InitTextures() 공개 메소드

public InitTextures ( ) : void
리턴 void

InsertPoint() 공개 메소드

public InsertPoint ( int index ) : TrackBuildRPoint,
index int
리턴 TrackBuildRPoint,

InsertPoint() 공개 메소드

public InsertPoint ( TrackBuildRPoint, point, int index ) : void
point TrackBuildRPoint,
index int
리턴 void

OnEnable() 공개 메소드

public OnEnable ( ) : void
리턴 void

OptimseMeshes() 공개 메소드

public OptimseMeshes ( ) : void
리턴 void

ReRenderTrack() 공개 메소드

Set all point data to rerender
public ReRenderTrack ( ) : void
리턴 void

RecalculateCurves() 공개 메소드

public RecalculateCurves ( ) : void
리턴 void

RemovePoint() 공개 메소드

public RemovePoint ( TrackBuildRPoint point ) : void
point TrackBuildRPoint
리턴 void

RemoveTexture() 공개 메소드

public RemoveTexture ( TrackBuildRTexture texture ) : void
texture TrackBuildRTexture
리턴 void

SetTrackDirty() 공개 메소드

Mark the entire track as dirty so it will be recalculated/rebuilt
public SetTrackDirty ( ) : void
리턴 void

Texture() 공개 메소드

public Texture ( int index ) : TrackBuildRTexture
index int
리턴 TrackBuildRTexture

ToXML() 공개 메소드

public ToXML ( ) : string
리턴 string

TrackRendered() 공개 메소드

Set all point data as rendered
public TrackRendered ( ) : void
리턴 void

this() 공개 메소드

public this ( int index ) : TrackBuildRPoint
index int
리턴 TrackBuildRPoint

프로퍼티 상세

additionalBumperHeight 공개적으로 프로퍼티

public float additionalBumperHeight
리턴 float

assignedPoints 공개적으로 프로퍼티

public int assignedPoints
리턴 int

baseTransform 공개적으로 프로퍼티

public Transform baseTransform
리턴 Transform

bumperAngleThresold 공개적으로 프로퍼티

public float bumperAngleThresold
리턴 float

bumperHeight 공개적으로 프로퍼티

public float bumperHeight
리턴 float

bumperMode 공개적으로 프로퍼티

public BumperModes bumperMode
리턴 BumperModes

bumperWidth 공개적으로 프로퍼티

public float bumperWidth
리턴 float

conformAccuracy 공개적으로 프로퍼티

public float conformAccuracy
리턴 float

diagramFilepath 공개적으로 프로퍼티

public string diagramFilepath
리턴 string

diagramGO 공개적으로 프로퍼티

public GameObject diagramGO
리턴 GameObject

diagramMaterial 공개적으로 프로퍼티

public Material diagramMaterial
리턴 Material

diagramMesh 공개적으로 프로퍼티

public Mesh diagramMesh
리턴 Mesh

drawMode 공개적으로 프로퍼티

public bool drawMode
리턴 bool

editMeshResolution 공개적으로 프로퍼티

public float editMeshResolution
리턴 float

includeCollider 공개적으로 프로퍼티

public bool includeCollider
리턴 bool

includeColliderRoof 공개적으로 프로퍼티

public bool includeColliderRoof
리턴 bool

jumpHeight 공개적으로 프로퍼티

public float jumpHeight
리턴 float

lastPolycount 공개적으로 프로퍼티

public int lastPolycount
리턴 int

loopPoints 공개적으로 프로퍼티

public int loopPoints
리턴 int

loopRadius 공개적으로 프로퍼티

public float loopRadius
리턴 float

maxJumpLength 공개적으로 프로퍼티

public float maxJumpLength
리턴 float

mergeCurve 공개적으로 프로퍼티

public AnimationCurve mergeCurve
리턴 AnimationCurve

mergeTerrain 공개적으로 프로퍼티

public Terrain mergeTerrain
리턴 Terrain

scale 공개적으로 프로퍼티

public float scale
리턴 float

scalePointA 공개적으로 프로퍼티

public Vector3 scalePointA
리턴 Vector3

scalePointB 공개적으로 프로퍼티

public Vector3 scalePointB
리턴 Vector3

showDiagram 공개적으로 프로퍼티

public bool showDiagram
리턴 bool

terrainAccuracy 공개적으로 프로퍼티

public float terrainAccuracy
리턴 float

terrainMergeMargin 공개적으로 프로퍼티

public float terrainMergeMargin
리턴 float

terrainMergeWidth 공개적으로 프로퍼티

public float terrainMergeWidth
리턴 float

trackBumpers 공개적으로 프로퍼티

public bool trackBumpers
리턴 bool

trackColliderWallHeight 공개적으로 프로퍼티

public float trackColliderWallHeight
리턴 float

twistAngle 공개적으로 프로퍼티

public float twistAngle
리턴 float

twistPoints 공개적으로 프로퍼티

public int twistPoints
리턴 int

twistRadius 공개적으로 프로퍼티

public float twistRadius
리턴 float