Revision: 1594
http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=1594&view=rev
Author: rorthomas
Date: 2011-01-22 20:17:19 +0000 (Sat, 22 Jan 2011)
Log Message:
-----------
fixed spline end
Modified Paths:
--------------
trunk/source/main/RoRFrameListener.cpp
Modified: trunk/source/main/RoRFrameListener.cpp
===================================================================
--- trunk/source/main/RoRFrameListener.cpp 2011-01-22 19:33:12 UTC (rev
1593)
+++ trunk/source/main/RoRFrameListener.cpp 2011-01-22 20:17:19 UTC (rev
1594)
@@ -8125,11 +8125,14 @@
// get current position on that spline
Vector3 pos_cur = spline->interpolate(steps_len * (float)l);
Vector3 pos_next = spline->interpolate(steps_len * (float)(l +
1));
+ Ogre::Vector3 direction = (pos_next - pos_cur);
if(l == numSeg.x)
+ {
// last segment uses previous position
pos_next = spline->interpolate(steps_len * (float)(l -
1));
+ direction = (pos_cur - pos_next);
+ }
- Ogre::Vector3 direction = (pos_next - pos_cur);
for (int w = 0; w<=numSeg.y; w++)
{
@@ -8151,6 +8154,7 @@
mo->normal(Vector3::UNIT_Y);
}
}
+
bool reverse = false;
for (int n1 = 0; n1<numSeg.x; n1++)
{
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Rigsofrods-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel