--- a/src/proto2/Terrain.cc Sun Nov 30 14:01:06 2008 +0000
+++ b/src/proto2/Terrain.cc Sun Nov 30 14:17:57 2008 +0000
@@ -124,6 +124,7 @@
}
+
// TODO: This could better :)
// TODO: And this need some cleaning :)
void Terrain::generateTerrain(int seed) {
--- a/src/proto2/Terrain.hh Sun Nov 30 14:01:06 2008 +0000
+++ b/src/proto2/Terrain.hh Sun Nov 30 14:17:57 2008 +0000
@@ -111,14 +111,14 @@
* @param point Point where the tangent is calculated
* @param n Accuracy in pixels
*/
- Vector getTangent(Vector point, int n = 1) const;
+ Vector getTangent(Vector prevPoint, Vector hitPoint, int n = 1) const;
/**
* Get tangent for the given point.
*
* @param point Point where the tangent is calculated
* @param a Accuracy in scaled units.
*/
- Vector getTangent(Vector point, float a) const;
+ Vector getTangent(Vector prevPoint, Vector hitPoint, float a) const;
/**
* Return normal for the given point.
@@ -126,14 +126,14 @@
* @param point Point for which the normal is calculated.
* @param n Accuracy in pixels
*/
- Vector getNormal(Vector point, int n = 1) const;
+ Vector getNormal(Vector prevPoint, Vector hitPoint, int n = 1) const;
/**
* Return a normal for the given point.
*
* @param point Point for which the normal is calculated.
* @param a Accuracy in scaled units
*/
- Vector getNormal(Vector point, float a) const;
+ Vector getNormal(Vector prevPoint, Vector hitPoint, float a) const;
/**
* Generate random terrain.