namespace: CurveArchitect.Objects
file: ArchitectCurve.cs
Description:
The Architect Curve that can animated objects, deform meshes and terrain.
Public variables
General stored data:
string id
- The curves id.
float length
- The length of the curve.
int vertices
- Total deformed vertices.
int deformations
- Total deformations.
int followers
- Total followers.
NormalType normalType
- Normal type used.
float smoothResolution
- The curves smooth resolution.
float resolution
- The curves resolution.
bool loop
- Loop disabled/enabled.
List<Segment> segements
- List of segements.
ArchitectCurveCache architectCurveCache
- Reference to the Architect Curve Cache component.
General runtime data:
MonitorArchitectCurve monitor
- Monitors all changes for the Architect Curve.
List<Vector3> positionMap
- Cached position map.
List<float>
- Cached length map.
List<Vector3> normals
- Cached normals. Only used by dynamic curves
List<ArchitectCurveObject> architectCurveObjects
- References to all Architect Curve Objects.
Bounds controlPointsBounds
- Bounds for all control points.
Bounds bounds
- Bounds for the Architect Curve.
Public functions
float GetSmoothResolution()
Description:
Gets the smooth resolution for the Architect Curve, correlated to the lengthMap.
Returns:
Returns smooth resolution.
float GetSmoothResolutionStep()
Description:
Returns how many steps should messured before calulating one length map.
Returns:
Returns smooth resolution step.
float GetPositionResolution()
Description:
The resolution of cached positions.
Returns:
Returns resolution.
float GetNormalResolution()
Description:
The resolution of cached normals.
Returns:
Returns resolution.
void AddObjectConatiner()
Description:
Add new ArchitectCurveObject to the ArchitectCurve.
void RemoveObjectConatiner()
Description:
Remove specific ArchitectCurveObject from the ArchitectCurve.
void IsEnabled()
Description:
Is the ArchitectCurve enabled in hierarchy.