<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US">
	<id>https://wiki.stunts.hu/index.php?action=history&amp;feed=atom&amp;title=Power_gear_bug</id>
	<title>Power gear bug - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.stunts.hu/index.php?action=history&amp;feed=atom&amp;title=Power_gear_bug"/>
	<link rel="alternate" type="text/html" href="https://wiki.stunts.hu/index.php?title=Power_gear_bug&amp;action=history"/>
	<updated>2026-05-02T19:19:02Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>https://wiki.stunts.hu/index.php?title=Power_gear_bug&amp;diff=5698&amp;oldid=prev</id>
		<title>Daniel3D: /* Additional remarks */</title>
		<link rel="alternate" type="text/html" href="https://wiki.stunts.hu/index.php?title=Power_gear_bug&amp;diff=5698&amp;oldid=prev"/>
		<updated>2023-12-05T21:21:15Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Additional remarks&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-US&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:21, 5 December 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l31&quot;&gt;Line 31:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 31:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;An approximate expression for the critical speed of flexible PG and and anti-PG cars is:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;An approximate expression for the critical speed of flexible PG and and anti-PG cars is:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  critical_speed = sqrt [2*(torque * gear_ratio - surface_constant)/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;aero_drag_constant&lt;/del&gt;]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  critical_speed = sqrt [2*(torque * gear_ratio - surface_constant)/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;aero_drag&lt;/ins&gt;]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In the above expression, the speed is in mph and all CAR*.RES parameters are given in internal units (that is, the values are taken as they are read from the file). The surface constant is a value that grows with the surface inclination; for common ramps it is approximately 200000 - and for loops (which get nearly vertical at places) it is expected to be much larger, lowering a lot the critical speed. The qualitative result given by the expression is that any parameter changes that lower car acceleration (other than increasing car mass) will reduce the critical speed. That&#039;s the reason why the [[Acura]] has lower critical speeds than [[Indy]], for instance. The expression for critical speed ties three essential car features. That implies anyone interested in making a flexible PG or anti-PG car will have to design the car around the desired PG behaviour, potentially leading to lots of undesired compromises.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In the above expression, the speed is in mph and all CAR*.RES parameters &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(torque, gear_ratio and aero_drag) &lt;/ins&gt;are given in internal units (that is, the values are taken as they are read from the file). The surface constant is a value that grows with the surface inclination; for common ramps it is approximately 200000 - and for loops (which get nearly vertical at places) it is expected to be much larger, lowering a lot the critical speed. The qualitative result given by the expression is that any parameter changes that lower car acceleration (other than increasing car mass) will reduce the critical speed. That&#039;s the reason why the [[Acura]] has lower critical speeds than [[Indy]], for instance. The expression for critical speed ties three essential car features. That implies anyone interested in making a flexible PG or anti-PG car will have to design the car around the desired PG behaviour, potentially leading to lots of undesired compromises.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The PG classes for the original cars are (car masses are given in brackets):&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The PG classes for the original cars are (car masses are given in brackets):&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Daniel3D</name></author>
	</entry>
	<entry>
		<id>https://wiki.stunts.hu/index.php?title=Power_gear_bug&amp;diff=3264&amp;oldid=prev</id>
		<title>Duplode: /* PG classes */ a bit more precision</title>
		<link rel="alternate" type="text/html" href="https://wiki.stunts.hu/index.php?title=Power_gear_bug&amp;diff=3264&amp;oldid=prev"/>
		<updated>2012-06-03T22:28:54Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;PG classes: &lt;/span&gt; a bit more precision&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-US&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 00:28, 4 June 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l5&quot;&gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Stunts cars can be grouped into five classes with regard to their power gear behaviour, which are briefly defined below:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Stunts cars can be grouped into five classes with regard to their power gear behaviour, which are briefly defined below:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Flexible PG cars&amp;#039;&amp;#039;&amp;#039; - These cars can reach power gear as they move over most kinds of sloped surfaces (ramps, loops, etc.) and surface transitions as long as they do so above a certain critical speed. This speed depends on characteristics of the car (such as gear ratios, torque curve shape and aero drag) as well as on the inclination of the surface. In general, the critical speed drops as the acceleration of the car is reduced.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Flexible PG cars&amp;#039;&amp;#039;&amp;#039; - These cars can reach power gear as they move over most kinds of sloped surfaces (ramps, loops, etc.) and surface transitions as long as they do so above a certain critical speed. This speed depends on characteristics of the car (such as gear ratios, torque curve shape and aero drag) as well as on the inclination of the surface. In general, the critical speed drops as the acceleration of the car is reduced.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &#039;&#039;&#039;Rigid PG cars&#039;&#039;&#039; - These cars can reach power gear &#039;&#039;exclusively&#039;&#039; by getting at or above the critical speed of 225mph as long as it does not have enough engine torque to keep accelerating on its own at such speeds (&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;for conventional &lt;/del&gt;cars, that means their flat-track top speed must be below the critical speed). Surface characteristics do not affect the onset of rigid PG.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &#039;&#039;&#039;Rigid PG cars&#039;&#039;&#039; - These cars can reach power gear &#039;&#039;exclusively&#039;&#039; by getting at or above the critical speed of 225mph as long as it does not have enough engine torque to keep accelerating on its own at such speeds (&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;in &lt;/ins&gt;cars &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;with conventionally-shaped torque curves&lt;/ins&gt;, that means their flat-track top speed must be below the critical speed). Surface characteristics do not affect the onset of rigid PG.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Bug-free cars&amp;#039;&amp;#039;&amp;#039; - These cars are completely free of the power gear bug. Additionally, they differ radically from conventional Stunts cars in that they are slowed down by aero drag whenever they reach speeds above the flat-track top speed via jump-boosting, thus displaying more reasonable physical behaviour.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Bug-free cars&amp;#039;&amp;#039;&amp;#039; - These cars are completely free of the power gear bug. Additionally, they differ radically from conventional Stunts cars in that they are slowed down by aero drag whenever they reach speeds above the flat-track top speed via jump-boosting, thus displaying more reasonable physical behaviour.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &#039;&#039;&#039;Regular cars&#039;&#039;&#039; - These cars also have neither PG nor anti-PG; however, they are able to conserve speeds higher than the flat-track top speed as long as the gas pedal is held (unlike true bug-free cars). At &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;very &lt;/del&gt;high speeds &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(above 200mph) &lt;/del&gt;these cars may be subject to some speed loss when landing from jumps. The effect is, however, qualitatively different from and much milder than anti-PG.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &#039;&#039;&#039;Regular cars&#039;&#039;&#039; - These cars also have neither PG nor anti-PG; however, they are able to conserve speeds higher than the flat-track top speed as long as the gas pedal is held (unlike true bug-free cars). At high speeds these cars may be subject to some speed loss when landing from jumps. The effect is, however, qualitatively different from and much milder than anti-PG.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Anti-PG cars&amp;#039;&amp;#039;&amp;#039; - These cars can be abruptly slowed down when driving through sloped surfaces or surface transitions if above some critical speed. Such critical speed depends on car and surface traits in essentially the same way observed for flexible PG cars.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Anti-PG cars&amp;#039;&amp;#039;&amp;#039; - These cars can be abruptly slowed down when driving through sloped surfaces or surface transitions if above some critical speed. Such critical speed depends on car and surface traits in essentially the same way observed for flexible PG cars.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Duplode</name></author>
	</entry>
	<entry>
		<id>https://wiki.stunts.hu/index.php?title=Power_gear_bug&amp;diff=1409&amp;oldid=prev</id>
		<title>Duplode at 19:33, 12 May 2009</title>
		<link rel="alternate" type="text/html" href="https://wiki.stunts.hu/index.php?title=Power_gear_bug&amp;diff=1409&amp;oldid=prev"/>
		<updated>2009-05-12T19:33:27Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-US&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:33, 12 May 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l47&quot;&gt;Line 47:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 47:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Power Gear]] and [[Anti-Power Gear]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Power Gear]] and [[Anti-Power Gear]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Driving&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Modding&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Duplode</name></author>
	</entry>
	<entry>
		<id>https://wiki.stunts.hu/index.php?title=Power_gear_bug&amp;diff=1327&amp;oldid=prev</id>
		<title>Duplode: /* The magic formula */</title>
		<link rel="alternate" type="text/html" href="https://wiki.stunts.hu/index.php?title=Power_gear_bug&amp;diff=1327&amp;oldid=prev"/>
		<updated>2009-05-11T15:17:53Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;The magic formula&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-US&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:17, 11 May 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l12&quot;&gt;Line 12:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 12:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== The magic formula ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== The magic formula ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;While the quantitative characteristics of the PG effect may depend on several other factors, the class to which a car belongs is exclusively determined by its mass. Let&#039;&#039;f&#039;&#039; be the fractional part (that is, the part of the number after the decimal point) of the quotient 65536/car_mass . The class of a car will then be determined by &#039;&#039;f&#039;&#039; through the following rule:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;While the quantitative characteristics of the PG effect may depend on several other factors, the class to which a car belongs is exclusively determined by its mass. Let &#039;&#039;f&#039;&#039; be the fractional part (that is, the part of the number after the decimal point) of the quotient 65536/car_mass . The class of a car will then be determined by &#039;&#039;f&#039;&#039; through the following rule:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;f&amp;#039;&amp;#039; = 0 : Bug-free;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;f&amp;#039;&amp;#039; = 0 : Bug-free;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l25&quot;&gt;Line 25:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 25:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;br clear=&amp;quot;all&amp;quot; /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;br clear=&amp;quot;all&amp;quot; /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Although the &quot;magic&quot; designation for the 65536/car_mass quotient seems appropriate at &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;fist &lt;/del&gt;sight (as it seems to come out of nowhere), there is a reasonable hypothesis accounting for why the quotient is so important. The algorithm for determining speed increments per simulation frame must compute, directly or not, the ratio engine_force/car_mass . Available evidence strongly suggests that at some point of the calculation the result is determined as a 4-byte integer (instead of the regular 2-byte values used elsewhere) so that integer division by car_mass can be replaced by multiplication by 65536/car_mass with the aim of making the algorithm reasonably precise. The power gear bug most likely originates from improper handling of truncation errors in evaluating the quotient, leading to non-physical values for car acceleration.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Although the &quot;magic&quot; designation for the 65536/car_mass quotient seems appropriate at &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;first &lt;/ins&gt;sight (as it seems to come out of nowhere), there is a reasonable hypothesis accounting for why the quotient is so important. The algorithm for determining speed increments per simulation frame must compute, directly or not, the ratio engine_force/car_mass . Available evidence strongly suggests that at some point of the calculation the result is determined as a 4-byte integer (instead of the regular 2-byte values used elsewhere) so that integer division by car_mass can be replaced by multiplication by 65536/car_mass with the aim of making the algorithm reasonably precise. The power gear bug most likely originates from improper handling of truncation errors in evaluating the quotient, leading to non-physical values for car acceleration.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Additional remarks ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Additional remarks ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Duplode</name></author>
	</entry>
	<entry>
		<id>https://wiki.stunts.hu/index.php?title=Power_gear_bug&amp;diff=1326&amp;oldid=prev</id>
		<title>Duplode: /* PG classes */</title>
		<link rel="alternate" type="text/html" href="https://wiki.stunts.hu/index.php?title=Power_gear_bug&amp;diff=1326&amp;oldid=prev"/>
		<updated>2009-05-11T06:46:49Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;PG classes&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-US&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:46, 11 May 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l7&quot;&gt;Line 7:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Rigid PG cars&amp;#039;&amp;#039;&amp;#039; - These cars can reach power gear &amp;#039;&amp;#039;exclusively&amp;#039;&amp;#039; by getting at or above the critical speed of 225mph as long as it does not have enough engine torque to keep accelerating on its own at such speeds (for conventional cars, that means their flat-track top speed must be below the critical speed). Surface characteristics do not affect the onset of rigid PG.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Rigid PG cars&amp;#039;&amp;#039;&amp;#039; - These cars can reach power gear &amp;#039;&amp;#039;exclusively&amp;#039;&amp;#039; by getting at or above the critical speed of 225mph as long as it does not have enough engine torque to keep accelerating on its own at such speeds (for conventional cars, that means their flat-track top speed must be below the critical speed). Surface characteristics do not affect the onset of rigid PG.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Bug-free cars&amp;#039;&amp;#039;&amp;#039; - These cars are completely free of the power gear bug. Additionally, they differ radically from conventional Stunts cars in that they are slowed down by aero drag whenever they reach speeds above the flat-track top speed via jump-boosting, thus displaying more reasonable physical behaviour.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Bug-free cars&amp;#039;&amp;#039;&amp;#039; - These cars are completely free of the power gear bug. Additionally, they differ radically from conventional Stunts cars in that they are slowed down by aero drag whenever they reach speeds above the flat-track top speed via jump-boosting, thus displaying more reasonable physical behaviour.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &#039;&#039;&#039;Regular cars&#039;&#039;&#039; - These cars also have neither PG nor anti-PG; however, they are able to conserve speeds higher than the flat-track top speed as long as the gas pedal is held (unlike true bug-free cars). At very high speeds (above 200mph) these cars may be subject to some speed loss when landing from jumps. The effect is, however, qualitatively different from&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, &lt;/del&gt;and much milder than&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, &lt;/del&gt;anti-PG.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &#039;&#039;&#039;Regular cars&#039;&#039;&#039; - These cars also have neither PG nor anti-PG; however, they are able to conserve speeds higher than the flat-track top speed as long as the gas pedal is held (unlike true bug-free cars). At very high speeds (above 200mph) these cars may be subject to some speed loss when landing from jumps. The effect is, however, qualitatively different from and much milder than anti-PG.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Anti-PG cars&amp;#039;&amp;#039;&amp;#039; - These cars can be abruptly slowed down when driving through sloped surfaces or surface transitions if above some critical speed. Such critical speed depends on car and surface traits in essentially the same way observed for flexible PG cars.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Anti-PG cars&amp;#039;&amp;#039;&amp;#039; - These cars can be abruptly slowed down when driving through sloped surfaces or surface transitions if above some critical speed. Such critical speed depends on car and surface traits in essentially the same way observed for flexible PG cars.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Duplode</name></author>
	</entry>
	<entry>
		<id>https://wiki.stunts.hu/index.php?title=Power_gear_bug&amp;diff=1325&amp;oldid=prev</id>
		<title>Duplode: /* PG classes */</title>
		<link rel="alternate" type="text/html" href="https://wiki.stunts.hu/index.php?title=Power_gear_bug&amp;diff=1325&amp;oldid=prev"/>
		<updated>2009-05-11T06:46:14Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;PG classes&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-US&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:46, 11 May 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l7&quot;&gt;Line 7:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Rigid PG cars&amp;#039;&amp;#039;&amp;#039; - These cars can reach power gear &amp;#039;&amp;#039;exclusively&amp;#039;&amp;#039; by getting at or above the critical speed of 225mph as long as it does not have enough engine torque to keep accelerating on its own at such speeds (for conventional cars, that means their flat-track top speed must be below the critical speed). Surface characteristics do not affect the onset of rigid PG.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Rigid PG cars&amp;#039;&amp;#039;&amp;#039; - These cars can reach power gear &amp;#039;&amp;#039;exclusively&amp;#039;&amp;#039; by getting at or above the critical speed of 225mph as long as it does not have enough engine torque to keep accelerating on its own at such speeds (for conventional cars, that means their flat-track top speed must be below the critical speed). Surface characteristics do not affect the onset of rigid PG.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Bug-free cars&amp;#039;&amp;#039;&amp;#039; - These cars are completely free of the power gear bug. Additionally, they differ radically from conventional Stunts cars in that they are slowed down by aero drag whenever they reach speeds above the flat-track top speed via jump-boosting, thus displaying more reasonable physical behaviour.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Bug-free cars&amp;#039;&amp;#039;&amp;#039; - These cars are completely free of the power gear bug. Additionally, they differ radically from conventional Stunts cars in that they are slowed down by aero drag whenever they reach speeds above the flat-track top speed via jump-boosting, thus displaying more reasonable physical behaviour.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &#039;&#039;&#039;Regular cars&#039;&#039;&#039; - These cars also &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;do not &lt;/del&gt;have neither PG nor anti-PG; however, they are able to conserve speeds higher than the flat-track top speed as long as the gas pedal is held (unlike true bug-free cars). At very high speeds (above 200mph) these cars may be subject to some speed loss when landing from jumps. The effect is, however, qualitatively different from, and much milder than, anti-PG.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &#039;&#039;&#039;Regular cars&#039;&#039;&#039; - These cars also have neither PG nor anti-PG; however, they are able to conserve speeds higher than the flat-track top speed as long as the gas pedal is held (unlike true bug-free cars). At very high speeds (above 200mph) these cars may be subject to some speed loss when landing from jumps. The effect is, however, qualitatively different from, and much milder than, anti-PG.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Anti-PG cars&amp;#039;&amp;#039;&amp;#039; - These cars can be abruptly slowed down when driving through sloped surfaces or surface transitions if above some critical speed. Such critical speed depends on car and surface traits in essentially the same way observed for flexible PG cars.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Anti-PG cars&amp;#039;&amp;#039;&amp;#039; - These cars can be abruptly slowed down when driving through sloped surfaces or surface transitions if above some critical speed. Such critical speed depends on car and surface traits in essentially the same way observed for flexible PG cars.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Duplode</name></author>
	</entry>
	<entry>
		<id>https://wiki.stunts.hu/index.php?title=Power_gear_bug&amp;diff=1324&amp;oldid=prev</id>
		<title>Duplode: /* The magic formula */</title>
		<link rel="alternate" type="text/html" href="https://wiki.stunts.hu/index.php?title=Power_gear_bug&amp;diff=1324&amp;oldid=prev"/>
		<updated>2009-05-11T06:44:12Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;The magic formula&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-US&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:44, 11 May 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l25&quot;&gt;Line 25:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 25:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;br clear=&amp;quot;all&amp;quot; /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;br clear=&amp;quot;all&amp;quot; /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Although the &quot;magic&quot; designation for the 65536/car_mass quotient seems appropriate at fist sight (as it seems to come out of nowhere), there is a reasonable &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;explanation &lt;/del&gt;for why the quotient is so important. The algorithm for determining speed increments per simulation frame must compute, directly or not, the ratio engine_force/car_mass . Available evidence strongly suggests that at some point of the calculation the result is determined as a 4-byte integer (instead of the regular 2-byte values used elsewhere) so that integer division by car_mass can be replaced by multiplication by 65536/car_mass with the aim of making the algorithm reasonably precise. The power gear bug most likely originates from improper handling of truncation errors in evaluating the quotient, leading to non-physical values for car acceleration.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Although the &quot;magic&quot; designation for the 65536/car_mass quotient seems appropriate at fist sight (as it seems to come out of nowhere), there is a reasonable &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;hypothesis accounting &lt;/ins&gt;for why the quotient is so important. The algorithm for determining speed increments per simulation frame must compute, directly or not, the ratio engine_force/car_mass . Available evidence strongly suggests that at some point of the calculation the result is determined as a 4-byte integer (instead of the regular 2-byte values used elsewhere) so that integer division by car_mass can be replaced by multiplication by 65536/car_mass with the aim of making the algorithm reasonably precise. The power gear bug most likely originates from improper handling of truncation errors in evaluating the quotient, leading to non-physical values for car acceleration.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Additional remarks ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Additional remarks ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Duplode</name></author>
	</entry>
	<entry>
		<id>https://wiki.stunts.hu/index.php?title=Power_gear_bug&amp;diff=1323&amp;oldid=prev</id>
		<title>Duplode at 06:23, 11 May 2009</title>
		<link rel="alternate" type="text/html" href="https://wiki.stunts.hu/index.php?title=Power_gear_bug&amp;diff=1323&amp;oldid=prev"/>
		<updated>2009-05-11T06:23:54Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-US&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:23, 11 May 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &#039;&#039;&#039;power gear bug&#039;&#039;&#039; expression refers, in the context of game mechanics investigations, to the underlying cause of the [[PG|power gear]] effect. Power gear is one of the most remarkable bugs of Stunts, being in essence an overdrive mode available to some cars and reached under specific conditions that makes the car shoot to its overall top speed (limited only by the maximum rpm of the engine and gear ratio) and become essentially unaffected by grass slowdown. A proper explanation for the origins of power gear has eluded and frustrated custom car designers for a long time, as finding a consistent relation to usual performance parameters and the occurrence of power gear proved difficult. To complicate matters further, there are different kinds of power gear, with subtle differences between them, as well as [[Anti-Power Gear|anti-power gear]], which causes a car to slow down in conditions that might otherwise trigger power gear. This article aims to present an unified theory for explaining both PG and anti-PG effect which proves useful for car tuners in practice.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &#039;&#039;&#039;power gear bug&#039;&#039;&#039; expression refers, in the context of game mechanics investigations, to the underlying cause of the [[PG|power gear]] effect. Power gear is one of the most remarkable bugs of Stunts, being in essence an overdrive mode available to some cars and reached under specific conditions that makes the car shoot to its overall top speed (limited only by the maximum rpm of the engine and gear ratio) and become essentially unaffected by grass slowdown. A proper explanation for the origins of power gear has eluded and frustrated &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Custom cars|&lt;/ins&gt;custom car&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]] &lt;/ins&gt;designers for a long time, as finding a consistent relation to usual performance &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Car &lt;/ins&gt;parameters&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|parameters]] &lt;/ins&gt;and the occurrence of power gear proved difficult. To complicate matters further, there are different kinds of power gear, with subtle differences between them, as well as [[Anti-Power Gear|anti-power gear]], which causes a car to slow down in conditions that might otherwise trigger power gear. This article aims to present an unified theory for explaining both PG and anti-PG effect which proves useful for car tuners in practice.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== PG classes ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== PG classes ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Duplode</name></author>
	</entry>
	<entry>
		<id>https://wiki.stunts.hu/index.php?title=Power_gear_bug&amp;diff=1322&amp;oldid=prev</id>
		<title>Duplode: /* The magic formula */</title>
		<link rel="alternate" type="text/html" href="https://wiki.stunts.hu/index.php?title=Power_gear_bug&amp;diff=1322&amp;oldid=prev"/>
		<updated>2009-05-11T06:18:21Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;The magic formula&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-US&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:18, 11 May 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l22&quot;&gt;Line 22:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 22:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It is important to emphasize the value of &amp;#039;&amp;#039;f&amp;#039;&amp;#039; does not influence the critical speeds for PG or anti-PG; thus, a car which belongs to one of the PG or anti-PG classes may be unable to reach the effect depending on other parameters - for instance, a rigid PG car which cannot reach 225mph at maximum rpm and highest gear due to its gear ratio settings will never reach PG.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It is important to emphasize the value of &amp;#039;&amp;#039;f&amp;#039;&amp;#039; does not influence the critical speeds for PG or anti-PG; thus, a car which belongs to one of the PG or anti-PG classes may be unable to reach the effect depending on other parameters - for instance, a rigid PG car which cannot reach 225mph at maximum rpm and highest gear due to its gear ratio settings will never reach PG.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[image:Pgplot.png|720px|center|thumb|A chart displaying the PG class (given by the coloured regions) for mass values from 1 to 64. Green (line): bug-free; dark blue: &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;flex-&lt;/del&gt;PG; light blue: rigid PG; light red: regular; dark red: anti-PG.]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[image:Pgplot.png|720px|center|thumb|A chart displaying the PG class (given by the coloured regions) for mass values from 1 to 64. Green (line): bug-free; dark blue: &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;flexible &lt;/ins&gt;PG; light blue: rigid PG; light red: regular; dark red: anti-PG.]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;br clear=&amp;quot;all&amp;quot; /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;br clear=&amp;quot;all&amp;quot; /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Duplode</name></author>
	</entry>
	<entry>
		<id>https://wiki.stunts.hu/index.php?title=Power_gear_bug&amp;diff=1315&amp;oldid=prev</id>
		<title>Duplode: The full story, as promised ;)</title>
		<link rel="alternate" type="text/html" href="https://wiki.stunts.hu/index.php?title=Power_gear_bug&amp;diff=1315&amp;oldid=prev"/>
		<updated>2009-05-11T06:11:36Z</updated>

		<summary type="html">&lt;p&gt;The full story, as promised ;)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The &amp;#039;&amp;#039;&amp;#039;power gear bug&amp;#039;&amp;#039;&amp;#039; expression refers, in the context of game mechanics investigations, to the underlying cause of the [[PG|power gear]] effect. Power gear is one of the most remarkable bugs of Stunts, being in essence an overdrive mode available to some cars and reached under specific conditions that makes the car shoot to its overall top speed (limited only by the maximum rpm of the engine and gear ratio) and become essentially unaffected by grass slowdown. A proper explanation for the origins of power gear has eluded and frustrated custom car designers for a long time, as finding a consistent relation to usual performance parameters and the occurrence of power gear proved difficult. To complicate matters further, there are different kinds of power gear, with subtle differences between them, as well as [[Anti-Power Gear|anti-power gear]], which causes a car to slow down in conditions that might otherwise trigger power gear. This article aims to present an unified theory for explaining both PG and anti-PG effect which proves useful for car tuners in practice.&lt;br /&gt;
&lt;br /&gt;
== PG classes ==&lt;br /&gt;
&lt;br /&gt;
Stunts cars can be grouped into five classes with regard to their power gear behaviour, which are briefly defined below:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Flexible PG cars&amp;#039;&amp;#039;&amp;#039; - These cars can reach power gear as they move over most kinds of sloped surfaces (ramps, loops, etc.) and surface transitions as long as they do so above a certain critical speed. This speed depends on characteristics of the car (such as gear ratios, torque curve shape and aero drag) as well as on the inclination of the surface. In general, the critical speed drops as the acceleration of the car is reduced.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Rigid PG cars&amp;#039;&amp;#039;&amp;#039; - These cars can reach power gear &amp;#039;&amp;#039;exclusively&amp;#039;&amp;#039; by getting at or above the critical speed of 225mph as long as it does not have enough engine torque to keep accelerating on its own at such speeds (for conventional cars, that means their flat-track top speed must be below the critical speed). Surface characteristics do not affect the onset of rigid PG.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Bug-free cars&amp;#039;&amp;#039;&amp;#039; - These cars are completely free of the power gear bug. Additionally, they differ radically from conventional Stunts cars in that they are slowed down by aero drag whenever they reach speeds above the flat-track top speed via jump-boosting, thus displaying more reasonable physical behaviour.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Regular cars&amp;#039;&amp;#039;&amp;#039; - These cars also do not have neither PG nor anti-PG; however, they are able to conserve speeds higher than the flat-track top speed as long as the gas pedal is held (unlike true bug-free cars). At very high speeds (above 200mph) these cars may be subject to some speed loss when landing from jumps. The effect is, however, qualitatively different from, and much milder than, anti-PG. &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Anti-PG cars&amp;#039;&amp;#039;&amp;#039; - These cars can be abruptly slowed down when driving through sloped surfaces or surface transitions if above some critical speed. Such critical speed depends on car and surface traits in essentially the same way observed for flexible PG cars.&lt;br /&gt;
&lt;br /&gt;
== The magic formula ==&lt;br /&gt;
&lt;br /&gt;
While the quantitative characteristics of the PG effect may depend on several other factors, the class to which a car belongs is exclusively determined by its mass. Let&amp;#039;&amp;#039;f&amp;#039;&amp;#039; be the fractional part (that is, the part of the number after the decimal point) of the quotient 65536/car_mass . The class of a car will then be determined by &amp;#039;&amp;#039;f&amp;#039;&amp;#039; through the following rule:&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;f&amp;#039;&amp;#039; = 0 : Bug-free;&lt;br /&gt;
* 0 &amp;lt; &amp;#039;&amp;#039;f&amp;#039;&amp;#039; &amp;lt; 1/6 : Flexible PG;&lt;br /&gt;
* 1/6 &amp;lt; &amp;#039;&amp;#039;f&amp;#039;&amp;#039; &amp;lt; 1/2 : Rigid PG;&lt;br /&gt;
* 1/2 &amp;lt; &amp;#039;&amp;#039;f&amp;#039;&amp;#039; &amp;lt; 5/6 : Regular;&lt;br /&gt;
* 5/6 &amp;lt; &amp;#039;&amp;#039;f&amp;#039;&amp;#039; &amp;lt; 1 : Anti-PG.&lt;br /&gt;
&lt;br /&gt;
It is important to emphasize the value of &amp;#039;&amp;#039;f&amp;#039;&amp;#039; does not influence the critical speeds for PG or anti-PG; thus, a car which belongs to one of the PG or anti-PG classes may be unable to reach the effect depending on other parameters - for instance, a rigid PG car which cannot reach 225mph at maximum rpm and highest gear due to its gear ratio settings will never reach PG.&lt;br /&gt;
&lt;br /&gt;
[[image:Pgplot.png|720px|center|thumb|A chart displaying the PG class (given by the coloured regions) for mass values from 1 to 64. Green (line): bug-free; dark blue: flex-PG; light blue: rigid PG; light red: regular; dark red: anti-PG.]]&lt;br /&gt;
&amp;lt;br clear=&amp;quot;all&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Although the &amp;quot;magic&amp;quot; designation for the 65536/car_mass quotient seems appropriate at fist sight (as it seems to come out of nowhere), there is a reasonable explanation for why the quotient is so important. The algorithm for determining speed increments per simulation frame must compute, directly or not, the ratio engine_force/car_mass . Available evidence strongly suggests that at some point of the calculation the result is determined as a 4-byte integer (instead of the regular 2-byte values used elsewhere) so that integer division by car_mass can be replaced by multiplication by 65536/car_mass with the aim of making the algorithm reasonably precise. The power gear bug most likely originates from improper handling of truncation errors in evaluating the quotient, leading to non-physical values for car acceleration.&lt;br /&gt;
&lt;br /&gt;
== Additional remarks ==&lt;br /&gt;
&lt;br /&gt;
An approximate expression for the critical speed of flexible PG and and anti-PG cars is:&lt;br /&gt;
&lt;br /&gt;
 critical_speed = sqrt [2*(torque * gear_ratio - surface_constant)/aero_drag_constant]&lt;br /&gt;
&lt;br /&gt;
In the above expression, the speed is in mph and all CAR*.RES parameters are given in internal units (that is, the values are taken as they are read from the file). The surface constant is a value that grows with the surface inclination; for common ramps it is approximately 200000 - and for loops (which get nearly vertical at places) it is expected to be much larger, lowering a lot the critical speed. The qualitative result given by the expression is that any parameter changes that lower car acceleration (other than increasing car mass) will reduce the critical speed. That&amp;#039;s the reason why the [[Acura]] has lower critical speeds than [[Indy]], for instance. The expression for critical speed ties three essential car features. That implies anyone interested in making a flexible PG or anti-PG car will have to design the car around the desired PG behaviour, potentially leading to lots of undesired compromises. &lt;br /&gt;
&lt;br /&gt;
The PG classes for the original cars are (car masses are given in brackets):&lt;br /&gt;
* Flexible PG: [[Indy]] (15), [[Acura]] (31).&lt;br /&gt;
* Rigid PG: [[Ferrari]] (27), [[Corvette]] (35), [[Audi]] and [[Lancia]] (25, unreachable PG).&lt;br /&gt;
* Bug-free: [[Carrera]] (32)&lt;br /&gt;
* Regular: [[P962]] (20), [[Jaguar]] (21), [[LM-002]] (55)&lt;br /&gt;
* Anti-PG: [[Countach]] (33)&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Car parameters]]&lt;br /&gt;
* [[Power Gear]] and [[Anti-Power Gear]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Driving]]&lt;/div&gt;</summary>
		<author><name>Duplode</name></author>
	</entry>
</feed>