Interpolation of Agent's path by the Hermite curve and Catmull curve implementations in Steerlite
Group ID: CG-F15-23-Rutgers
Members (Net ID):
Zachary Daniels (zad7)
Nilay Chakraborty (nc541)
Tanvi Borkar (tab251)
Zooraze Tariq (zt32)
Description:
We have used the current time stamps to calculate the time differences which are used in Hermite and Catmull equations.
For Hermite curve:
We have taken the two point locations and tangent values as inputs from the test case, the path between which we want to interpolate.
We have put values of the point's x,y,z coordinates , tangent's x,y,z coordinates and current time value in the Hermite equation to find the next point in the curve.
We have made the Camera to move according to the same equation
For Catmull curve:
We have taken the two point locations as inputs from the test case, the path between which we want to interpolate.
We have put values of the point's x,y,z coordinates and current time value in the Catmull equation to find the next tangent in the curve.
We have put values of the point's x,y,z coordinates , tangent's x,y,z coordinates and current time value in the Hermite equation to find the next point in the curve.
We have made the Camera to move according to the same equation
No comments:
Post a Comment