namespace: CurveArchitect.Utilites
file: HelperDeformation.cs
General
void DeformFollowerPoint(ArchitectCurve ac, ArchitectCurveObject aco)
Description:
Deforms a follower point along an curve, updating its position and rotation according to the curve's shape.
DeformJob CreateDeformJob(ArchitectCurve ac, Vector3[] vertices, Vector3 objectWorldPosition, Quaternion objectWorldRotation, Vector3 objectScale, bool mirrorDeformation, bool ignoreSaddleSkew)
Description:
Creates a deform job for mesh deformations.
Returns:
The created deform job instance.
void CompleteDeformation(JobHandle jobHandle, DeformJob deformJob, Action<Vector3[]> endAction)
Description:
Complete deformation job.
void UpdateCurveSpace(ArchitectCurve ac, ArchitectCurveObject aco)
Description:
Update curve space position and rotation for any object.
(Vector3, Quaternion) GetCurveSpace(ArchitectCurve ac, ArchitectCurveObject aco)
Description:
Gets the curve space position and rotation for a given curve.
Returns:
A tuple containing the curve space position and rotation.