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