[8398] | 1 | <LevelInfo |
---|
| 2 | name = "Earth Demonstration" |
---|
| 3 | description = "1:100 Scale Model of Earth with Gravity" |
---|
[8498] | 4 | tags = "showcase" |
---|
[9016] | 5 | screenshot = "earthdemonstration.png" |
---|
[8398] | 6 | /> |
---|
| 7 | |
---|
| 8 | <?lua |
---|
| 9 | include("stats.oxo") |
---|
| 10 | include("HUDTemplates3.oxo") |
---|
| 11 | include("templates/lodInformation.oxt") |
---|
| 12 | include("templates/spaceshipHXY.oxt") |
---|
| 13 | ?> |
---|
| 14 | |
---|
[9016] | 15 | <Level> |
---|
[8398] | 16 | <templates> |
---|
| 17 | <Template link="lodtemplate_default" /> |
---|
| 18 | </templates> |
---|
[8706] | 19 | <?lua include("includes/notifications.oxi") ?> |
---|
[8398] | 20 | |
---|
[8472] | 21 | <Template name=PortalDefault> |
---|
| 22 | <PortalEndPoint> |
---|
| 23 | <attached> |
---|
| 24 | <Billboard material="Portals/Default" /> |
---|
| 25 | </attached> |
---|
| 26 | </PortalEndPoint> |
---|
| 27 | </Template> |
---|
| 28 | |
---|
[8398] | 29 | <Scene |
---|
| 30 | ambientlight = "0.8, 0.8, 0.8" |
---|
[8438] | 31 | skybox = "Orxonox/skyboxempty" |
---|
[8398] | 32 | > |
---|
[8438] | 33 | <WorldAmbientSound |
---|
| 34 | source="Earth.ogg" |
---|
| 35 | looping="true" |
---|
| 36 | playOnLoad="true" |
---|
| 37 | /> |
---|
| 38 | |
---|
[8398] | 39 | <Light |
---|
| 40 | type="directional" |
---|
| 41 | position="-500000,-500000,0" |
---|
| 42 | direction="0.253, 0.593, -0.765" |
---|
| 43 | diffuse="1.0, 0.9, 0.9, 1.0" |
---|
| 44 | specular="1.0, 0.9, 0.9, 1.0" |
---|
| 45 | /> |
---|
| 46 | |
---|
[8472] | 47 | |
---|
| 48 | |
---|
[8398] | 49 | <SpawnPoint |
---|
| 50 | position="70000,0,0" |
---|
| 51 | lookat="0,0,0" |
---|
| 52 | spawnclass="SpaceShip" |
---|
| 53 | pawndesign="spaceshipHXY" |
---|
| 54 | /> |
---|
[8472] | 55 | <PortalEndPoint position="70500,100,0" id="1" distance="40" target="MobileEntity" design="PortalDefault"/> |
---|
[8398] | 56 | |
---|
[8438] | 57 | <!-- This is a model of Earth: mass=EarthMass/1000 and radius=EarthRadius[km]*10 --> |
---|
[11795] | 58 | <MovableEntity |
---|
[8398] | 59 | position="0,0,0" |
---|
| 60 | scale="63000" |
---|
[11795] | 61 | pitch="0" |
---|
[8398] | 62 | collisionType="dynamic" |
---|
| 63 | linearDamping="0.8" |
---|
| 64 | angularDamping="0" |
---|
| 65 | mass="5.9e21" |
---|
| 66 | rotationaxis="0,1,0" |
---|
| 67 | rotationrate="0.2" |
---|
[8496] | 68 | collisiondamage = 2 |
---|
| 69 | enablecollisiondamage = true |
---|
[8398] | 70 | > |
---|
| 71 | <attached> |
---|
[11795] | 72 | <Planet |
---|
| 73 | mesh="planets/earth.mesh" |
---|
| 74 | atmosphere="atmosphere1" |
---|
| 75 | atmospheresize="80.0f" |
---|
| 76 | imagesize="1024.0f" |
---|
| 77 | > |
---|
| 78 | <attached> |
---|
| 79 | <ForceField position="0,0,0" mode="newtonianGravity" diameter="140000" massDiameter="126000" mass="5.9e21" /> |
---|
| 80 | </attached> |
---|
| 81 | </Planet> |
---|
[8398] | 82 | </attached> |
---|
| 83 | <collisionShapes> |
---|
| 84 | <SphereCollisionShape radius="63000" position="0,0,0" /> |
---|
| 85 | </collisionShapes> |
---|
[11795] | 86 | </MovableEntity> |
---|
[8438] | 87 | |
---|
| 88 | <!-- This is a model of our Moon: mass=MoonMass/1000 and radius=MoonRadius[km]*10 and position=DistanceFromEarth[km]*10 --> |
---|
[11795] | 89 | <MovableEntity |
---|
[8438] | 90 | position="3625700,0,0" |
---|
| 91 | scale="17370" |
---|
[11795] | 92 | pitch="0" |
---|
[8438] | 93 | collisionType="dynamic" |
---|
| 94 | linearDamping="0.8" |
---|
| 95 | angularDamping="0" |
---|
| 96 | mass="7.36e19" |
---|
| 97 | rotationaxis="0,1,0" |
---|
| 98 | rotationrate="0.2" |
---|
[8496] | 99 | collisiondamage = 2 |
---|
| 100 | enablecollisiondamage = true |
---|
[8438] | 101 | > |
---|
| 102 | <attached> |
---|
[11795] | 103 | <Planet |
---|
| 104 | mesh="planets/moon.mesh" |
---|
| 105 | atmosphere="atmosphere1" |
---|
| 106 | atmospheresize="80.0f" |
---|
| 107 | imagesize="1024.0f" |
---|
| 108 | > |
---|
| 109 | <attached> |
---|
| 110 | <ForceField position="0,0,0" mode="newtonianGravity" diameter="40000" massDiameter="34740" mass="7.36e19" /> |
---|
| 111 | </attached> |
---|
| 112 | </Planet> |
---|
[8438] | 113 | </attached> |
---|
| 114 | <collisionShapes> |
---|
| 115 | <SphereCollisionShape radius="17370" position="0,0,0" /> |
---|
| 116 | </collisionShapes> |
---|
[11795] | 117 | </MovableEntity> |
---|
[8472] | 118 | <PortalEndPoint position="3603330,100,0" id="2" distance="40" target="MobileEntity" design="PortalDefault"/> |
---|
| 119 | |
---|
| 120 | <!-- Create portals from Earth to the Moon --> |
---|
| 121 | <PortalLink fromID="1" toID="2" /> |
---|
[8496] | 122 | <PortalLink fromID="2" toID="1" /> |
---|
[8398] | 123 | </Scene> |
---|
| 124 | </Level> |
---|