Changes between Version 65 and Version 66 of content/LevelHowTo
- Timestamp:
- Oct 10, 2015, 6:23:35 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
content/LevelHowTo
v65 v66 119 119 <Model mesh="sphere.mesh" position="100,0,0" scale3d="10,20,20" /> 120 120 }}} 121 The attribute "scale" scales the model uniforlyin all directions. By using the attribute "scale3d" you can define different scaling factors for the x-, y- and z-directions.121 The attribute "scale" applies a uniform scale in all directions. By using the attribute "scale3d" you can define different scaling factors for the x-, y- and z-directions. 122 122 123 123 == Spawnpoints == … … 135 135 ||spaceshipghost||"templates/spaceshipGhost.oxt"||stealth aircraft || 136 136 ||spaceshipring||"templates/spaceshipRing.oxt"||spaceship with a large ring|| 137 ||spaceshipHeartAttack||"templates/spaceshipHeartAttack.oxt"||large fla st spaceship with many laser weapons||137 ||spaceshipHeartAttack||"templates/spaceshipHeartAttack.oxt"||large flat spaceship with many laser weapons|| 138 138 ||spaceshipHXY||"templates/spaceshipHXY.oxt"|||| 139 139 ||spaceshipHXYSL||"templates/spaceshipHXYSL.oxt"||fast|| … … 163 163 164 164 == WaypointController == 165 So far we used only the classes StaticEntity and MovableEntity. There is another important WorldEntity derivative you should know: the ControllableEntity. A ControllableEntity is controlled by a controller (an instance of the class Controller). This controller executes steering commands on the ControllableEntity.165 So far we used only the classes StaticEntity and MovableEntity. There is another important WorldEntity derivative you should know: The ControllableEntity. A ControllableEntity is controlled by a controller (an instance of the class Controller). This controller executes steering commands on the ControllableEntity. 166 166 By using Controller and ControllableEntity you can create objects that move in the space along any path you like. 167 167 The simplest case of a Controller is the WaypointController: … … 531 531 <StaticEntity position="<?lua print(y) ?>,0,<?lua print(z) ?>" scale="<?lua print(math.random() * 10 + 5) ?>" collisionType="static" > 532 532 <?lua end ?> 533 }}} 534 535 536 == Sound == 537 There are two important classes responsible for the sound in Orxonox you can use in a level: The WorldAmbientSound class and the WorldSound class. 538 Place the WorldAmbientSound inside your scene and it will be hearable everywhere in the level. 539 {{{ 540 #!xml 541 <WorldAmbientSound source="Earth.ogg" looping="true" playOnLoad="true" volume=0.9/> 542 }}} 543 The WorldSound class is a WorldEntity. This allows you to give the sound a position and orientation in space. You won't be able to hear a WorldSound to far away from its position. WorldSounds are typically used for engine and gun noise and explosions. 544 {{{ 545 #!xml 546 <WorldSound position="0,0,0" direction="1,0,0" mainstate="activity" source="sounds/Explosion2.ogg" looping="true" volume=0.7/> 547 <Model mesh="Coordinates.mesh" position="0,0,0" scale=3/> 533 548 }}} 534 549