[8398] | 1 | <LevelInfo |
---|
| 2 | name = "Earth Demonstration" |
---|
| 3 | description = "1:100 Scale Model of Earth with Gravity" |
---|
| 4 | tags = "earth, gravity" |
---|
| 5 | /> |
---|
| 6 | |
---|
| 7 | <?lua |
---|
| 8 | include("stats.oxo") |
---|
| 9 | include("HUDTemplates3.oxo") |
---|
| 10 | include("templates/lodInformation.oxt") |
---|
| 11 | include("templates/spaceshipHXY.oxt") |
---|
| 12 | ?> |
---|
| 13 | |
---|
| 14 | <Level |
---|
| 15 | name = "Planet Earth" |
---|
| 16 | description = "1:100 Scale Model of Earth with Gravity" |
---|
| 17 | > |
---|
| 18 | <templates> |
---|
| 19 | <Template link="lodtemplate_default" /> |
---|
| 20 | </templates> |
---|
| 21 | |
---|
| 22 | <Scene |
---|
| 23 | ambientlight = "0.8, 0.8, 0.8" |
---|
[8438] | 24 | skybox = "Orxonox/skyboxempty" |
---|
[8398] | 25 | > |
---|
[8438] | 26 | <WorldAmbientSound |
---|
| 27 | source="Earth.ogg" |
---|
| 28 | looping="true" |
---|
| 29 | playOnLoad="true" |
---|
| 30 | /> |
---|
| 31 | |
---|
[8398] | 32 | <Light |
---|
| 33 | type="directional" |
---|
| 34 | position="-500000,-500000,0" |
---|
| 35 | direction="0.253, 0.593, -0.765" |
---|
| 36 | diffuse="1.0, 0.9, 0.9, 1.0" |
---|
| 37 | specular="1.0, 0.9, 0.9, 1.0" |
---|
| 38 | /> |
---|
| 39 | |
---|
| 40 | <SpawnPoint |
---|
| 41 | position="70000,0,0" |
---|
| 42 | lookat="0,0,0" |
---|
| 43 | spawnclass="SpaceShip" |
---|
| 44 | pawndesign="spaceshipHXY" |
---|
| 45 | /> |
---|
| 46 | |
---|
[8438] | 47 | <!-- This is a model of Earth: mass=EarthMass/1000 and radius=EarthRadius[km]*10 --> |
---|
[8398] | 48 | <Planet |
---|
| 49 | position="0,0,0" |
---|
| 50 | scale="63000" |
---|
| 51 | collisionType="dynamic" |
---|
| 52 | linearDamping="0.8" |
---|
| 53 | angularDamping="0" |
---|
| 54 | mass="5.9e21" |
---|
| 55 | pitch="0" |
---|
[8438] | 56 | mesh="planets/earth.mesh" |
---|
[8398] | 57 | atmosphere="atmosphere1" |
---|
| 58 | rotationaxis="0,1,0" |
---|
| 59 | rotationrate="0.2" |
---|
| 60 | atmospheresize="300.0f" |
---|
| 61 | imagesize="1024.0f" |
---|
| 62 | > |
---|
| 63 | <attached> |
---|
| 64 | <ForceField position="0,0,0" mode="newtonianGravity" diameter="140000" massDiameter="126000" mass="5.9e21" /> |
---|
| 65 | </attached> |
---|
| 66 | <collisionShapes> |
---|
| 67 | <SphereCollisionShape radius="63000" position="0,0,0" /> |
---|
| 68 | </collisionShapes> |
---|
| 69 | </Planet> |
---|
[8438] | 70 | |
---|
| 71 | <!-- This is a model of our Moon: mass=MoonMass/1000 and radius=MoonRadius[km]*10 and position=DistanceFromEarth[km]*10 --> |
---|
| 72 | <Planet |
---|
| 73 | position="3625700,0,0" |
---|
| 74 | scale="17370" |
---|
| 75 | collisionType="dynamic" |
---|
| 76 | linearDamping="0.8" |
---|
| 77 | angularDamping="0" |
---|
| 78 | mass="7.36e19" |
---|
| 79 | pitch="0" |
---|
| 80 | mesh="planets/moon.mesh" |
---|
| 81 | atmosphere="atmosphere1" |
---|
| 82 | rotationaxis="0,1,0" |
---|
| 83 | rotationrate="0.2" |
---|
| 84 | atmospheresize="300.0f" |
---|
| 85 | imagesize="1024.0f" |
---|
| 86 | > |
---|
| 87 | <attached> |
---|
| 88 | <ForceField position="0,0,0" mode="newtonianGravity" diameter="40000" massDiameter="34740" mass="7.36e19" /> |
---|
| 89 | </attached> |
---|
| 90 | <collisionShapes> |
---|
| 91 | <SphereCollisionShape radius="17370" position="0,0,0" /> |
---|
| 92 | </collisionShapes> |
---|
| 93 | </Planet> |
---|
[8398] | 94 | </Scene> |
---|
| 95 | </Level> |
---|