Original Post
🔒 Locked
Vector3.Hermite Method
Advertisement
The Hermite method can be used to generate a curve between two points here is some stuff about hermite curves.
Each time you call the method it will return a point on the curve devined by the two position and two tangent vectors. The weight determines how far down the curve to calculate the point. The weightingFactor should range between 0.0 and 1.0 for the beginning and end of the curve respectively.
To generate a line, call the Hermite method a number of times slowly increasing the weight and collect the output values as vertex positions. With the verts you can then draw a line strip.
hope this helps.
Each time you call the method it will return a point on the curve devined by the two position and two tangent vectors. The weight determines how far down the curve to calculate the point. The weightingFactor should range between 0.0 and 1.0 for the beginning and end of the curve respectively.
To generate a line, call the Hermite method a number of times slowly increasing the weight and collect the output values as vertex positions. With the verts you can then draw a line strip.
hope this helps.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement