C# Class SSTUTools.PanelArcGroup

Datei anzeigen Open project: shadowmage45/SSTULabs Class Usage Examples

Public Properties

Property Type Description
endAngle float
faces int
shouldGenerateSidewalls bool
startAngle float
thickness float

Public Methods

Method Description
PanelArcGroup ( float start, float end, float thickness, int faces, bool colliders ) : System
addArc ( float radius, float height ) : void
generateColliders ( Vector3 center, int facesPerCollider ) : UnityEngine.GameObject[]
generatePanels ( Vector3 pos, UVArea outer, UVArea inner, UVArea caps ) : Mesh
getBottomRadius ( ) : float
getPivotRotation ( ) : float
getPivotVector ( ) : Vector3

Private Methods

Method Description
generatePanelSegment ( MeshBuilder builder, Vector3 pos, Arc arcA, Arc arcB, UVArea area, bool invertFaces, bool invertNormalY, bool invertNormalXZ ) : void
generateSidewalls ( MeshBuilder builder, UVArea caps ) : void

Method Details

PanelArcGroup() public method

public PanelArcGroup ( float start, float end, float thickness, int faces, bool colliders ) : System
start float
end float
thickness float
faces int
colliders bool
return System

addArc() public method

public addArc ( float radius, float height ) : void
radius float
height float
return void

generateColliders() public method

public generateColliders ( Vector3 center, int facesPerCollider ) : UnityEngine.GameObject[]
center Vector3
facesPerCollider int
return UnityEngine.GameObject[]

generatePanels() public method

public generatePanels ( Vector3 pos, UVArea outer, UVArea inner, UVArea caps ) : Mesh
pos Vector3
outer UVArea
inner UVArea
caps UVArea
return UnityEngine.Mesh

getBottomRadius() public method

public getBottomRadius ( ) : float
return float

getPivotRotation() public method

public getPivotRotation ( ) : float
return float

getPivotVector() public method

public getPivotVector ( ) : Vector3
return Vector3

Property Details

endAngle public_oe property

public float endAngle
return float

faces public_oe property

public int faces
return int

shouldGenerateSidewalls public_oe property

public bool shouldGenerateSidewalls
return bool

startAngle public_oe property

public float startAngle
return float

thickness public_oe property

public float thickness
return float