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 | <Template name=PortalDefault> |
---|
23 | <PortalEndPoint> |
---|
24 | <attached> |
---|
25 | <Billboard material="Portals/Default" /> |
---|
26 | </attached> |
---|
27 | </PortalEndPoint> |
---|
28 | </Template> |
---|
29 | |
---|
30 | <Scene |
---|
31 | ambientlight = "0.8, 0.8, 0.8" |
---|
32 | skybox = "Orxonox/skyboxempty" |
---|
33 | > |
---|
34 | <WorldAmbientSound |
---|
35 | source="Earth.ogg" |
---|
36 | looping="true" |
---|
37 | playOnLoad="true" |
---|
38 | /> |
---|
39 | |
---|
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 | |
---|
48 | |
---|
49 | |
---|
50 | <SpawnPoint |
---|
51 | position="70000,0,0" |
---|
52 | lookat="0,0,0" |
---|
53 | spawnclass="SpaceShip" |
---|
54 | pawndesign="spaceshipHXY" |
---|
55 | /> |
---|
56 | <PortalEndPoint position="70500,100,0" id="1" distance="40" target="MobileEntity" design="PortalDefault"/> |
---|
57 | |
---|
58 | <!-- This is a model of Earth: mass=EarthMass/1000 and radius=EarthRadius[km]*10 --> |
---|
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" |
---|
67 | mesh="planets/earth.mesh" |
---|
68 | atmosphere="atmosphere1" |
---|
69 | rotationaxis="0,1,0" |
---|
70 | rotationrate="0.2" |
---|
71 | atmospheresize="300.0f" |
---|
72 | imagesize="1024.0f" |
---|
73 | > |
---|
74 | <attached> |
---|
75 | <ForceField position="0,0,0" mode="newtonianGravity" diameter="140000" massDiameter="126000" mass="5.9e21" /> |
---|
76 | </attached> |
---|
77 | <collisionShapes> |
---|
78 | <SphereCollisionShape radius="63000" position="0,0,0" /> |
---|
79 | </collisionShapes> |
---|
80 | </Planet> |
---|
81 | |
---|
82 | <!-- This is a model of our Moon: mass=MoonMass/1000 and radius=MoonRadius[km]*10 and position=DistanceFromEarth[km]*10 --> |
---|
83 | <Planet |
---|
84 | position="3625700,0,0" |
---|
85 | scale="17370" |
---|
86 | collisionType="dynamic" |
---|
87 | linearDamping="0.8" |
---|
88 | angularDamping="0" |
---|
89 | mass="7.36e19" |
---|
90 | pitch="0" |
---|
91 | mesh="planets/moon.mesh" |
---|
92 | atmosphere="atmosphere1" |
---|
93 | rotationaxis="0,1,0" |
---|
94 | rotationrate="0.2" |
---|
95 | atmospheresize="300.0f" |
---|
96 | imagesize="1024.0f" |
---|
97 | > |
---|
98 | <attached> |
---|
99 | <ForceField position="0,0,0" mode="newtonianGravity" diameter="40000" massDiameter="34740" mass="7.36e19" /> |
---|
100 | </attached> |
---|
101 | <collisionShapes> |
---|
102 | <SphereCollisionShape radius="17370" position="0,0,0" /> |
---|
103 | </collisionShapes> |
---|
104 | </Planet> |
---|
105 | <PortalEndPoint position="3603330,100,0" id="2" distance="40" target="MobileEntity" design="PortalDefault"/> |
---|
106 | |
---|
107 | <!-- Create portals from Earth to the Moon --> |
---|
108 | <PortalLink fromID="1" toID="2" /> |
---|
109 | <!--<PortalLink fromID="2" toID="1" />--> |
---|
110 | </Scene> |
---|
111 | </Level> |
---|