interpolating between two points
i''m working on making suspension for a car, and i have the start point and end point of the spring relative to the car. i''ve already rotated these to the correct position, and i have a variable that says where the tire is between these two points. it goes from 0 to 1, 0 being the start point, 1 being the end. if the tire was at .5 on the spring, it would be halfway between the two points. how do i find out the location of the tire like this?
August 09, 2002 06:15 AM
startValue + param * (endValue - startValue)
if param = 0, returns startValue
if param = 1, returns endValue
if param = 0, returns startValue
if param = 1, returns endValue
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement