|
| static float | CircleCast (FairingXSection xs, Vector3 wAxis, Vector3 wPivot, Vector3 wRadial, int nRays, float rLength, int layerMask, out float lVariance, out RaycastHit hit) |
| | Peform a series of raycasts towards the xsection center. More...
|
| |
| static bool | ConeCast (FairingXSection xsFrom, FairingXSection xsTo, Vector3 wAxis, Vector3 wPivot, Vector3 wRadial, float radiusOffset, int nRays, int layerMask, out float hitLengthScalar, float aOffset=0f) |
| | Peform a series of raycasts from one xsection towards another, along the cone surface between them. Returns true if anything hit along the way. More...
|
| |
| static float | GetSlopeAngle (FairingXSection from, FairingXSection to) |
| | Returns the angle (in radians) formed by the slope between the two given sections (PI = no slope, lesser than PI = narrowing, greater = widening) More...
|
| |
| ProceduralFairings.FairingXSection.FairingXSection |
( |
| ) |
|
|
inline |
| ProceduralFairings.FairingXSection.FairingXSection |
( |
bool |
isCap | ) |
|
|
inline |
| ProceduralFairings.FairingXSection.FairingXSection |
( |
FairingXSection |
cloneOf | ) |
|
|
inline |
| bool ProceduralFairings.FairingXSection.AddAttachedFlag |
( |
int |
panelIndex, |
|
|
uint |
flagPartID |
|
) |
| |
|
inline |
Adds a flag to an existing panel index or creates a new one.
- Parameters
-
| panelIndex | Fairing panel index |
| flagPartID | flag Part persistent id |
| void ProceduralFairings.FairingXSection.AddNewFairingPanel |
( |
int |
panelIndex | ) |
|
|
inline |
Adds a new fairing panel reference by the panel index.
- Parameters
-
| static float ProceduralFairings.FairingXSection.CircleCast |
( |
FairingXSection |
xs, |
|
|
Vector3 |
wAxis, |
|
|
Vector3 |
wPivot, |
|
|
Vector3 |
wRadial, |
|
|
int |
nRays, |
|
|
float |
rLength, |
|
|
int |
layerMask, |
|
|
out float |
lVariance, |
|
|
out RaycastHit |
hit |
|
) |
| |
|
inlinestatic |
Peform a series of raycasts towards the xsection center.
- Parameters
-
| xs | The X-section in question |
| wAxis | worldspace axis |
| wPivot | worldspace base pivot point |
| wRadial | worldspace fwd reference |
| nRays | ray count, precision |
| rLength | ray length (always finds center, set to reasonable max) |
| layerMask | the raycast layermask |
| lVariance | the delta between the highest and lowest surfaces found. |
- Returns
- The highest surface height (from center)
| static bool ProceduralFairings.FairingXSection.ConeCast |
( |
FairingXSection |
xsFrom, |
|
|
FairingXSection |
xsTo, |
|
|
Vector3 |
wAxis, |
|
|
Vector3 |
wPivot, |
|
|
Vector3 |
wRadial, |
|
|
float |
radiusOffset, |
|
|
int |
nRays, |
|
|
int |
layerMask, |
|
|
out float |
hitLengthScalar, |
|
|
float |
aOffset = 0f |
|
) |
| |
|
inlinestatic |
Peform a series of raycasts from one xsection towards another, along the cone surface between them. Returns true if anything hit along the way.
- Parameters
-
| xsFrom | The X-section in question |
| wAxis | worldspace axis |
| wPivot | worldspace base pivot point |
| wRadial | worldspace fwd reference |
| nRays | ray count, precision |
| rLength | ray length (always finds center, set to reasonable max) |
| layerMask | the raycast layermask |
- Returns
- True if any surface is found intersecting the cone surface
| int ProceduralFairings.FairingXSection.GetPanelIndexFromFlag |
( |
uint |
FlagID, |
|
|
uint |
placementID |
|
) |
| |
|
inline |
Returns a panel index of 0 or greater when the part craft id OR a flag part placementID is passed and corresponds to an stored FLAG id
- Returns
- Returning -1 means the requested flag is not found.
Returns the angle (in radians) formed by the slope between the two given sections (PI = no slope, lesser than PI = narrowing, greater = widening)
| void ProceduralFairings.FairingXSection.Load |
( |
ConfigNode |
node | ) |
|
|
inline |
| void ProceduralFairings.FairingXSection.RemoveAttachedFlag |
( |
uint |
FlagID | ) |
|
|
inline |
| void ProceduralFairings.FairingXSection.Save |
( |
ConfigNode |
node | ) |
|
|
inline |
| void ProceduralFairings.FairingXSection.UpdateLerp |
( |
float |
t, |
|
|
float |
y |
|
) |
| |
|
inline |
| Color ProceduralFairings.FairingXSection.color |
| float ProceduralFairings.FairingXSection.h |
| bool ProceduralFairings.FairingXSection.isCap |
| bool ProceduralFairings.FairingXSection.isLast |
| bool ProceduralFairings.FairingXSection.isValid |
| float ProceduralFairings.FairingXSection.r |
| bool ProceduralFairings.FairingXSection.IsLerp |
|
get |
The documentation for this class was generated from the following file: