Skip to main content
gamedev.net
🔒 Locked

Vector3.Hermite Method

Started by bojb Jan 10, 2005 at 1:32 PM 1 replies 1.9k views
Original Post
bojb
bojb
Hi Does anyone know how to operate this method or can point me to any sample code or tutorials? I've had a search on google and can't seem to find anything. Cheers
turnpast
turnpast
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.
bojb
bojb
Thanks, thats great!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.