[21] | 1 | <ogreode> |
---|
| 2 | |
---|
| 3 | |
---|
| 4 | <!-- Create the vehicle using the supplied name and body mesh, make it 1.5 units heavy |
---|
| 5 | e.g. tonnes and offset the center of gravity by half (a metre) to make it more stable |
---|
| 6 | This puts the CoG somewhere around the wheel hubs, which is probably reasonably |
---|
| 7 | realistic for a sports-car --> |
---|
| 8 | <vehicle name="Jeep"> |
---|
| 9 | |
---|
| 10 | <body mesh="jeep_body.mesh"> |
---|
| 11 | <mass value="3" x="0" y="-1" z="0" /> |
---|
| 12 | </body> |
---|
| 13 | |
---|
| 14 | <wheel mesh="jeep_wheell.mesh" x="1" y="-1.1" z="1.8" mass="0.06"> |
---|
| 15 | <steer factor="1" force="8.0" speed="4.0" limit="0.75" /> |
---|
| 16 | <brake factor="0.75" /> |
---|
| 17 | <power factor="1.0" /> |
---|
| 18 | <contact bouncyness="0.9" friction="1.5" fds="0.004" /> |
---|
| 19 | </wheel> |
---|
| 20 | <wheel mesh="jeep_wheelr.mesh" x="-1" y="-1.1" z="1.8" mass="0.06"> |
---|
| 21 | <steer factor="1" force="8.0" speed="4.0" limit="0.75" /> |
---|
| 22 | <brake factor="0.75" /> |
---|
| 23 | <power factor="1.0" /> |
---|
| 24 | <contact bouncyness="0.9" friction="1.5" fds="0.004" /> |
---|
| 25 | </wheel> |
---|
| 26 | <wheel mesh="jeep_wheell.mesh" x="1" y="-1.1" z="-1.6" mass="0.06"> |
---|
| 27 | <brake factor="0.25" /> |
---|
| 28 | <power factor="1.0" /> |
---|
| 29 | <contact bouncyness="0.9" friction="1.5" fds="0.004" /> |
---|
| 30 | </wheel> |
---|
| 31 | <wheel mesh="jeep_wheelr.mesh" x="-1" y="-1.1" z="-1.6" mass="0.06"> |
---|
| 32 | <brake factor="0.25" /> |
---|
| 33 | <power factor="1.0" /> |
---|
| 34 | <contact bouncyness="0.9" friction="1.5" fds="0.004" /> |
---|
| 35 | </wheel> |
---|
| 36 | |
---|
| 37 | <suspension spring="100" damping="3.6" step="0.01" /> |
---|
| 38 | |
---|
| 39 | <engine redline="30.0" brake="15.0"> |
---|
| 40 | <torque min="0.5" max="10.0" /> |
---|
| 41 | </engine> |
---|
| 42 | </vehicle> |
---|
| 43 | |
---|
| 44 | <!-- Same but with antisway --> |
---|
| 45 | <vehicle name="JeepSway"> |
---|
| 46 | |
---|
| 47 | <body mesh="jeep_body.mesh"> |
---|
| 48 | <mass value="3" x="0" y="-1" z="0" /> |
---|
| 49 | </body> |
---|
| 50 | |
---|
| 51 | <wheel mesh="jeep_wheell.mesh" x="1" y="-1.1" z="1.8" mass="0.06"> |
---|
| 52 | <steer factor="1" force="8.0" speed="4.0" limit="0.75" /> |
---|
| 53 | <brake factor="0.75" /> |
---|
| 54 | <power factor="1.0" /> |
---|
| 55 | <contact bouncyness="0.9" friction="1.25" fds="0.004" /> |
---|
| 56 | </wheel> |
---|
| 57 | <wheel mesh="jeep_wheelr.mesh" x="-1" y="-1.1" z="1.8" mass="0.06"> |
---|
| 58 | <steer factor="1" force="8.0" speed="4.0" limit="0.75" /> |
---|
| 59 | <brake factor="0.75" /> |
---|
| 60 | <power factor="1.0" /> |
---|
| 61 | <contact bouncyness="0.9" friction="1.25" fds="0.004" /> |
---|
| 62 | </wheel> |
---|
| 63 | <wheel mesh="jeep_wheell.mesh" x="1" y="-1.1" z="-1.6" mass="0.06"> |
---|
| 64 | <brake factor="0.25" /> |
---|
| 65 | <power factor="1.0" /> |
---|
| 66 | <contact bouncyness="0.9" friction="1.25" fds="0.004" /> |
---|
| 67 | </wheel> |
---|
| 68 | <wheel mesh="jeep_wheelr.mesh" x="-1" y="-1.1" z="-1.6" mass="0.06"> |
---|
| 69 | <brake factor="0.25" /> |
---|
| 70 | <power factor="1.0" /> |
---|
| 71 | <contact bouncyness="0.9" friction="1.25" fds="0.004" /> |
---|
| 72 | </wheel> |
---|
| 73 | |
---|
| 74 | <suspension spring="70" damping="3.6" step="0.01" /> |
---|
| 75 | |
---|
| 76 | <engine redline="40.0" brake="20.0"> |
---|
| 77 | <torquecurve value="0.7" /> |
---|
| 78 | <torquecurve value="1.3" /> |
---|
| 79 | <torquecurve value="1.9" /> |
---|
| 80 | <torquecurve value="02.5" /> |
---|
| 81 | </engine> |
---|
| 82 | |
---|
| 83 | <antisway swayForce="200.0" forceLimit="5" rate="0.06"/> |
---|
| 84 | </vehicle> |
---|
| 85 | </ogreode> |
---|
| 86 | |
---|