Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NaN error.
12-28-2006, 11:21 AM,
#9
 
The modify doesn't work.
To generate a simple,origin NaN error, you must:
- use pau circuit
- go to double curves with a statue on the left
- go out of the main roads passing between the statue and guardrail "dunloop"
- go to the corner, turn on the right and point sidewalk on the left.
- when 3 tires go up to the sidewalk NaN error occurs.

Use before:
Suspension.cc line ~163
Code:
instead:
m_angle = asin (z / m_radius_magnitude);

use:
  if( (z / m_radius_magnitude) > 1.0 )
  {
    m_angle = asin (1.0);
cout << "asin (-1.0)\n";
  }
  else if ( (z / m_radius_magnitude) >= -1.0 )
  {
    m_angle = asin (z / m_radius_magnitude);
  }
  else
  {
    m_angle = asin (-1.0);
cout << "asin (-1.0)\n";
  }
to catch the error.

pwp71

P.S. I've done a replay, but I don't know where download them.
Is it possible to have a common area to download files?
[/code]
Reply


Messages In This Thread
NaN error. - by pwp71 - 11-30-2006, 07:14 PM
[No subject] - by thelusiv - 11-30-2006, 08:30 PM
[No subject] - by pwp71 - 12-19-2006, 07:41 PM
[No subject] - by joevenzon_phpbb2_import3 - 12-19-2006, 09:40 PM
[No subject] - by pwp71 - 12-20-2006, 03:00 PM
[No subject] - by thelusiv - 12-21-2006, 08:59 AM
[No subject] - by pwp71 - 12-27-2006, 05:27 PM
[No subject] - by joevenzon_phpbb2_import3 - 12-27-2006, 08:22 PM
[No subject] - by pwp71 - 12-28-2006, 11:21 AM
[No subject] - by joevenzon_phpbb2_import3 - 12-28-2006, 07:15 PM
[No subject] - by joevenzon_phpbb2_import3 - 12-28-2006, 09:08 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)