Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 65 and Version 66 of content/LevelHowTo


Ignore:
Timestamp:
Oct 10, 2015, 6:23:35 PM (9 years ago)
Author:
fvultier
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • content/LevelHowTo

    v65 v66  
    119119<Model mesh="sphere.mesh" position="100,0,0" scale3d="10,20,20" />
    120120}}}
    121 The attribute "scale" scales the model uniforly in all directions. By using the attribute "scale3d" you can define different scaling factors for the x-, y- and z-directions.
     121The 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.
    122122
    123123== Spawnpoints ==
     
    135135||spaceshipghost||"templates/spaceshipGhost.oxt"||stealth aircraft ||
    136136||spaceshipring||"templates/spaceshipRing.oxt"||spaceship with a large ring||
    137 ||spaceshipHeartAttack||"templates/spaceshipHeartAttack.oxt"||large flast spaceship with many laser weapons||
     137||spaceshipHeartAttack||"templates/spaceshipHeartAttack.oxt"||large flat spaceship with many laser weapons||
    138138||spaceshipHXY||"templates/spaceshipHXY.oxt"||||
    139139||spaceshipHXYSL||"templates/spaceshipHXYSL.oxt"||fast||
     
    163163
    164164== 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.
     165So 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.
    166166By using Controller and ControllableEntity you can create objects that move in the space along any path you like.
    167167The simplest case of a Controller is the WaypointController:
     
    531531    <StaticEntity position="<?lua print(y) ?>,0,<?lua print(z) ?>" scale="<?lua print(math.random() * 10 + 5) ?>" collisionType="static" >
    532532<?lua end ?>
     533}}}
     534
     535
     536== Sound ==
     537There are two important classes responsible for the sound in Orxonox you can use in a level: The WorldAmbientSound class and the WorldSound class.
     538Place 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}}}
     543The 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/>
    533548}}}
    534549