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