|
Last change
on this file since 7444 was
7444,
checked in by dafrick, 15 years ago
|
|
Adding Drone (Which is now called AutonomousDrone) and its controller.
|
-
Property svn:eol-style set to
native
|
|
File size:
1.3 KB
|
| Line | |
|---|
| 1 | <?lua |
|---|
| 2 | include("hudtemplates3.oxo") |
|---|
| 3 | include("stats.oxo") |
|---|
| 4 | include("templates/spaceship_assff.oxt") |
|---|
| 5 | include("templates/lodinformation.oxt") |
|---|
| 6 | ?> |
|---|
| 7 | |
|---|
| 8 | <Level |
|---|
| 9 | name = "PPS Tutorial" |
|---|
| 10 | description = "A level used in the PPS tutorial." |
|---|
| 11 | > |
|---|
| 12 | <templates> |
|---|
| 13 | <Template link=lodtemplate_default /> |
|---|
| 14 | </templates> |
|---|
| 15 | |
|---|
| 16 | <Scene |
|---|
| 17 | ambientlight = "0.5, 0.5, 0.5" |
|---|
| 18 | skybox = "Orxonox/skypanoramagen1" |
|---|
| 19 | > |
|---|
| 20 | |
|---|
| 21 | <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" /> |
|---|
| 22 | |
|---|
| 23 | <?lua |
|---|
| 24 | for i = 1, 10, 1 do |
|---|
| 25 | ?> |
|---|
| 26 | <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> |
|---|
| 27 | <?lua end ?> |
|---|
| 28 | |
|---|
| 29 | <!-- TODO: Insert drone here. --> |
|---|
| 30 | <!-- TODO: Remove. --> |
|---|
| 31 | <AutonomousDrone |
|---|
| 32 | primaryThrust = 100 |
|---|
| 33 | auxiliaryThrust = 30 |
|---|
| 34 | rotationThrust = 25 |
|---|
| 35 | mass = 50 |
|---|
| 36 | linearDamping = 0.9 |
|---|
| 37 | angularDamping = 0.7 |
|---|
| 38 | > |
|---|
| 39 | <attached> |
|---|
| 40 | <Model scale="10" mesh="drone.mesh"/> |
|---|
| 41 | </attached> |
|---|
| 42 | <collisionShapes> |
|---|
| 43 | <BoxCollisionShape position="0,0,0" halfExtents="10, 10, 10" /> |
|---|
| 44 | </collisionShapes> |
|---|
| 45 | </AutonomousDrone> |
|---|
| 46 | |
|---|
| 47 | </Scene> |
|---|
| 48 | </Level> |
|---|
Note: See
TracBrowser
for help on using the repository browser.