Bugfix: length along track was incorrect (only computed length along
current quad). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3745 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -103,5 +103,5 @@ void GraphNode::getDistances(const Vec3 &xyz, Vec3 *result)
|
||||
result->setX( (closest-xyz2d).getLength()); // to the right
|
||||
else
|
||||
result->setX(-(closest-xyz2d).getLength()); // to the left
|
||||
result->setY( (closest-m_lower_center).getLength());
|
||||
result->setY( m_distance_from_start + (closest-m_lower_center).getLength());
|
||||
} // getDistances
|
||||
|
||||
Reference in New Issue
Block a user