- Timestamp:
- Sep 13, 2010, 3:01:54 PM (14 years ago)
- Location:
- code/branches/tutorial2
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/tutorial2/data/levels/tutorial.oxw
r7404 r7444 7 7 8 8 <Level 9 name = "P resentation"10 description = "A simple testlevel"9 name = "PPS Tutorial" 10 description = "A level used in the PPS tutorial." 11 11 > 12 12 <templates> … … 19 19 > 20 20 21 22 23 24 <Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7">25 <attached>26 <Model scale="1" mesh="drone.mesh"/>27 </attached>28 <collisionShapes>29 <BoxCollisionShape position="0,0,0" halfExtents="10, 10, 10" />30 </collisionShapes>31 </Drone>32 33 <Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7">34 <attached>35 <Model scale="1" mesh="rocket.mesh"/>36 </attached>37 <collisionShapes>38 <BoxCollisionShape position="0,0,0" halfExtents="10, 10, 10" />39 </collisionShapes>40 </Drone>41 42 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" /> 43 44 <Model mesh="hs-w01.mesh" scale=10 position="0,0,-100" />45 <Model mesh="hs-w01s.mesh" scale=10 position="0,0,-100" />46 22 47 23 <?lua … … 51 27 <?lua end ?> 52 28 53 <GlobalShader compositor="Bloom" visible=false> 54 <events> 55 <visibility> 56 <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true /> 57 </visibility> 58 </events> 59 </GlobalShader> 60 <Model position="0,0,0" scale=8 mesh="ast1.mesh" /> 61 <StaticEntity position="0,0,0" collisionType=static> 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> 62 42 <collisionShapes> 63 < SphereCollisionShape radius="20" />43 <BoxCollisionShape position="0,0,0" halfExtents="10, 10, 10" /> 64 44 </collisionShapes> 65 </StaticEntity> 66 67 <!-- 68 <?lua 69 for i = 1, 70, 1 do 70 ?> 71 <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 1000 + 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 72 <attached> 73 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 74 </attached> 75 </MovableEntity> 76 <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * -1000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 77 <attached> 78 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 79 </attached> 80 </MovableEntity> 81 82 <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 1000 + 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 83 <attached> 84 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 85 </attached> 86 </MovableEntity> 87 <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * -1000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 88 <attached> 89 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 90 </attached> 91 </MovableEntity> 92 93 <MovableEntity position="<?lua print(math.random() * 1000 + 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 94 <attached> 95 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 96 </attached> 97 </MovableEntity> 98 <MovableEntity position="<?lua print(math.random() * -1000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>"> 99 <attached> 100 <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> 101 </attached> 102 </MovableEntity> 103 <?lua end ?> 104 --> 45 </AutonomousDrone> 105 46 106 47 </Scene> -
code/branches/tutorial2/src/orxonox/controllers/CMakeLists.txt
r7163 r7444 1 1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 AutonomousDroneController.cc 2 3 Controller.cc 3 4 HumanController.cc -
code/branches/tutorial2/src/orxonox/worldentities/CMakeLists.txt
r7163 r7444 1 1 ADD_SOURCE_FILES(ORXONOX_SRC_FILES 2 AutonomousDrone.cc 2 3 WorldEntity.cc 3 4 StaticEntity.cc
Note: See TracChangeset
for help on using the changeset viewer.