Drag[en]gine Script Module DragonScript Script API  1.0
World Class Reference

World. More...

Inheritance diagram for World:

Public Member Functions

World new ()
 Create world. More...
void update (float elapsed)
 Update the world. More...
DVector getSize ()
 Size of the world. More...
void setSize (DVector size)
 Set size of the world. More...
Vector getGravity ()
 Gravity vector. More...
void setGravity (Vector gravity)
 Set gravity vector. More...
bool getDisableLights ()
 All lights are disabled rendering world in full bright. More...
void setDisableLights (bool disable)
 Set if all lights are disabled rendering world in full bright. More...
Color getAmbientLight ()
 Ambient light. More...
void setAmbientLight (Color light)
 Set ambient light. More...
Matrix getLightColorMatrix ()
 Light color matrix. More...
void setLightColorMatrix (Matrix matrix)
 Set light color matrix. More...
Sky getSky ()
 Sky or null if not set. More...
void setSky (Sky sky)
 Set sky or null if not set. More...
Height terrain
HeightTerrain getHeightTerrain ()
 Hheight terrain or null if not set. More...
void setHeightTerrain (HeightTerrain heightTerrain)
 Set height terrain or null if not set. More...
int getCameraCount ()
 Number of cameras. More...
Camera getCameraAt (int index)
 Camera at index. More...
void addCamera (Camera camera)
 Add camera. More...
void removeCamera (Camera camera)
 Remove camera. More...
void removeAllCameras ()
 Remove all cameras. More...
int getSpeakerCount ()
 Number of speakers. More...
Speaker getSpeakerAt (int index)
 Speaker at index. More...
void addSpeaker (Speaker speaker)
 Add speaker. More...
void removeSpeaker (Speaker speaker)
 Remove speaker. More...
void removeAllSpeakers ()
 Remove all speakers. More...
int getMicrophoneCount ()
 Number of microphones. More...
Microphone getMicrophoneAt (int index)
 Microphone at index. More...
void addMicrophone (Microphone microphone)
 Add microphone. More...
void removeMicrophone (Microphone microphone)
 Remove microphone. More...
void removeAllMicrophones ()
 Remove all microphones. More...
Network states
int getNetworkStateCount ()
 Number of network states. More...
NetworkState getNetworkStateAt (int index)
 Network state at index. More...
void addNetworkState (NetworkState networkState)
 Add network state. More...
void removeNetworkState (NetworkState networkState)
 Remove network state. More...
void removeAllNetworkStates ()
 Remove all network states. More...
int getComponentCount ()
 Number of components. More...
Component getComponent (int index)
 Component at index. More...
void addComponent (Component comp)
 Add component. More...
void removeComponent (Component comp)
 Remove component. More...
void removeAllComponents ()
 Remove all components. More...
int getLightCount ()
 Number of lights. More...
Light getLight (int index)
 Light at index. More...
void addLight (Light light)
 Add light. More...
void removeLight (Light light)
 Remove light. More...
void removeAllLights ()
 Remove all lights. More...
int getColliderCount ()
 Number of colliders. More...
Collider getCollider (int index)
 Collider at index. More...
void addCollider (Collider collider)
 Add collider. More...
void removeCollider (Collider collider)
 Remove collider. More...
void removeAllColliders ()
 Remove all colliders. More...
int getLumimeterCount ()
 Number of lumimeters. More...
Lumimeter getLumimeterAt (int index)
 Lumimeter at index. More...
void addLumimeter (Lumimeter lumimeter)
 Add lumimeter. More...
void removeLumimeter (Lumimeter lumimeter)
 Remove lumimeter. More...
void removeAllLumimeters ()
 Remove all lumimeters. More...
Touch sensors
int getTouchSensorCount ()
 Number of touch sensors. More...
TouchSensor getTouchSensorAt (int index)
 Touch sensor at index. More...
void addTouchSensor (TouchSensor touchSensor)
 Add touch sensor. More...
void removeTouchSensor (TouchSensor touchSensor)
 Remove touch sensor. More...
void removeAllTouchSensors ()
 Remove all touch sensors. More...
Prop fields
int getPropFieldCount ()
 Number of prop fields. More...
PropField getPropFieldAt (int index)
 Prop field at index. More...
void addPropField (PropField propfield)
 Add prop field. More...
void removePropField (PropField propfield)
 Remove prop field. More...
void removeAllPropFields ()
 Remove all prop fields. More...
Force fields
int getForceFieldCount ()
 Number of force fields. More...
ForceField getForceFieldAt (int index)
 Force field at index. More...
void addForceField (ForceField forcefield)
 Add force field. More...
void removeForceField (ForceField forcefield)
 Remove force field. More...
void removeAllForceFields ()
 Remove all force fields. More...
Debug drawers
void addDebugDrawer (DebugDrawer debugDrawer)
 Add debug drawer. More...
void removeDebugDrawer (DebugDrawer debugDrawer)
 Remove debug drawer. More...
void removeAllDebugDrawers ()
 Remove all debug drawers. More...
Navigation spaces
void addNavigationSpace (NavigationSpace navspace)
 Add navigation space if absent. More...
void removeNavigationSpace (NavigationSpace navspace)
 Remove navigation space if present. More...
void removeAllNavigationSpaces ()
 Remove all navigation spaces. More...
Navigation blockers
void addNavigationBlocker (NavigationBlocker blocker)
 Add navigation blockers if absent. More...
void removeNavigationBlocker (NavigationBlocker blocker)
 Remove navigation blocker if present. More...
void removeAllNavigationBlockers ()
 Remove all navigation blockers. More...
void addNavigator (Navigator navigator)
 Add navigator if absent. More...
void removeNavigator (Navigator navigator)
 Remove navigator if present. More...
void removeAllNavigators ()
 Remove all navigators. More...
Environment map probes
void addEnvMapProbe (EnvMapProbe envMapProbe)
 Add environment map probe if absent. More...
void removeEnvMapProbe (EnvMapProbe envMapProbe)
 Remove environment map probe if present. More...
void removeAllEnvMapProbes ()
 Remove all environment map probes. More...
Collision detection.
void colliderHits (Collider collider)
 Static collider intersection test. More...
void colliderMoveHits (Collider collider, Vector displacement)
 Moving collider collision test. More...
void rayHits (DVector rayOrigin, Vector rayDirection, ColliderListener listener, CollisionFilter collisionFilter)
 Ray cast intersection test. More...
void rayHitsClosest (DVector rayOrigin, Vector rayDirection, ColliderListener listener, CollisionFilter collisionFilter)
 Closest ray cast intersection test. More...

Detailed Description


This is a native class.

Roland Pl├╝ss

Member Function Documentation

§ addCamera()

void addCamera ( Camera  camera)

Add camera.

§ addCollider()

void addCollider ( Collider  collider)

Add collider.

§ addComponent()

void addComponent ( Component  comp)

Add component.

§ addDebugDrawer()

void addDebugDrawer ( DebugDrawer  debugDrawer)

Add debug drawer.

§ addEnvMapProbe()

void addEnvMapProbe ( EnvMapProbe  envMapProbe)

Add environment map probe if absent.

§ addForceField()

void addForceField ( ForceField  forcefield)

Add force field.

§ addLight()

void addLight ( Light  light)

Add light.

§ addLumimeter()

void addLumimeter ( Lumimeter  lumimeter)

Add lumimeter.

§ addMicrophone()

void addMicrophone ( Microphone  microphone)

Add microphone.

§ addNavigationBlocker()

void addNavigationBlocker ( NavigationBlocker  blocker)

Add navigation blockers if absent.

§ addNavigationSpace()

void addNavigationSpace ( NavigationSpace  navspace)

Add navigation space if absent.

§ addNavigator()

void addNavigator ( Navigator  navigator)

Add navigator if absent.

§ addNetworkState()

void addNetworkState ( NetworkState  networkState)

Add network state.

§ addPropField()

void addPropField ( PropField  propfield)

Add prop field.

§ addSpeaker()

void addSpeaker ( Speaker  speaker)

Add speaker.

§ addTouchSensor()

void addTouchSensor ( TouchSensor  touchSensor)

Add touch sensor.

§ colliderHits()

void colliderHits ( Collider  collider)

Static collider intersection test.

Collision listener of collider is called for intersections.

§ colliderMoveHits()

void colliderMoveHits ( Collider  collider,
Vector  displacement 

Moving collider collision test.

Collision listener of collider is called for collisions.

§ getAmbientLight()

Color getAmbientLight ( )

Ambient light.

§ getCameraAt()

Camera getCameraAt ( int  index)

Camera at index.

§ getCameraCount()

int getCameraCount ( )

Number of cameras.

§ getCollider()

Collider getCollider ( int  index)

Collider at index.

§ getColliderCount()

int getColliderCount ( )

Number of colliders.

§ getComponent()

Component getComponent ( int  index)

Component at index.

§ getComponentCount()

int getComponentCount ( )

Number of components.

§ getDisableLights()

bool getDisableLights ( )

All lights are disabled rendering world in full bright.

§ getForceFieldAt()

ForceField getForceFieldAt ( int  index)

Force field at index.

§ getForceFieldCount()

int getForceFieldCount ( )

Number of force fields.

§ getGravity()

Vector getGravity ( )

Gravity vector.

§ getHeightTerrain()

HeightTerrain getHeightTerrain ( )

Hheight terrain or null if not set.

§ getLight()

Light getLight ( int  index)

Light at index.

§ getLightColorMatrix()

Matrix getLightColorMatrix ( )

Light color matrix.

§ getLightCount()

int getLightCount ( )

Number of lights.

§ getLumimeterAt()

Lumimeter getLumimeterAt ( int  index)

Lumimeter at index.

§ getLumimeterCount()

int getLumimeterCount ( )

Number of lumimeters.

§ getMicrophoneAt()

Microphone getMicrophoneAt ( int  index)

Microphone at index.

§ getMicrophoneCount()

int getMicrophoneCount ( )

Number of microphones.

§ getNetworkStateAt()

NetworkState getNetworkStateAt ( int  index)

Network state at index.

§ getNetworkStateCount()

int getNetworkStateCount ( )

Number of network states.

§ getPropFieldAt()

PropField getPropFieldAt ( int  index)

Prop field at index.

§ getPropFieldCount()

int getPropFieldCount ( )

Number of prop fields.

§ getSize()

DVector getSize ( )

Size of the world.

§ getSky()

Sky getSky ( )

Sky or null if not set.

§ getSpeakerAt()

Speaker getSpeakerAt ( int  index)

Speaker at index.

§ getSpeakerCount()

int getSpeakerCount ( )

Number of speakers.

§ getTouchSensorAt()

TouchSensor getTouchSensorAt ( int  index)

Touch sensor at index.

§ getTouchSensorCount()

int getTouchSensorCount ( )

Number of touch sensors.

§ new()

World new ( )

Create world.

§ rayHits()

void rayHits ( DVector  rayOrigin,
Vector  rayDirection,
ColliderListener  listener,
CollisionFilter  collisionFilter 

Ray cast intersection test.

§ rayHitsClosest()

void rayHitsClosest ( DVector  rayOrigin,
Vector  rayDirection,
ColliderListener  listener,
CollisionFilter  collisionFilter 

Closest ray cast intersection test.

Only closest intersection is reported to listener. rayHits() reports all intersections.

§ removeAllCameras()

void removeAllCameras ( )

Remove all cameras.

§ removeAllColliders()

void removeAllColliders ( )

Remove all colliders.

§ removeAllComponents()

void removeAllComponents ( )

Remove all components.

§ removeAllDebugDrawers()

void removeAllDebugDrawers ( )

Remove all debug drawers.

§ removeAllEnvMapProbes()

void removeAllEnvMapProbes ( )

Remove all environment map probes.

§ removeAllForceFields()

void removeAllForceFields ( )

Remove all force fields.

§ removeAllLights()

void removeAllLights ( )

Remove all lights.

§ removeAllLumimeters()

void removeAllLumimeters ( )

Remove all lumimeters.

§ removeAllMicrophones()

void removeAllMicrophones ( )

Remove all microphones.

§ removeAllNavigationBlockers()

void removeAllNavigationBlockers ( )

Remove all navigation blockers.

§ removeAllNavigationSpaces()

void removeAllNavigationSpaces ( )

Remove all navigation spaces.

§ removeAllNavigators()

void removeAllNavigators ( )

Remove all navigators.

§ removeAllNetworkStates()

void removeAllNetworkStates ( )

Remove all network states.

§ removeAllPropFields()

void removeAllPropFields ( )

Remove all prop fields.

§ removeAllSpeakers()

void removeAllSpeakers ( )

Remove all speakers.

§ removeAllTouchSensors()

void removeAllTouchSensors ( )

Remove all touch sensors.

§ removeCamera()

void removeCamera ( Camera  camera)

Remove camera.

§ removeCollider()

void removeCollider ( Collider  collider)

Remove collider.

§ removeComponent()

void removeComponent ( Component  comp)

Remove component.

§ removeDebugDrawer()

void removeDebugDrawer ( DebugDrawer  debugDrawer)

Remove debug drawer.

§ removeEnvMapProbe()

void removeEnvMapProbe ( EnvMapProbe  envMapProbe)

Remove environment map probe if present.

§ removeForceField()

void removeForceField ( ForceField  forcefield)

Remove force field.

§ removeLight()

void removeLight ( Light  light)

Remove light.

§ removeLumimeter()

void removeLumimeter ( Lumimeter  lumimeter)

Remove lumimeter.

§ removeMicrophone()

void removeMicrophone ( Microphone  microphone)

Remove microphone.

§ removeNavigationBlocker()

void removeNavigationBlocker ( NavigationBlocker  blocker)

Remove navigation blocker if present.

§ removeNavigationSpace()

void removeNavigationSpace ( NavigationSpace  navspace)

Remove navigation space if present.

§ removeNavigator()

void removeNavigator ( Navigator  navigator)

Remove navigator if present.

§ removeNetworkState()

void removeNetworkState ( NetworkState  networkState)

Remove network state.

§ removePropField()

void removePropField ( PropField  propfield)

Remove prop field.

§ removeSpeaker()

void removeSpeaker ( Speaker  speaker)

Remove speaker.

§ removeTouchSensor()

void removeTouchSensor ( TouchSensor  touchSensor)

Remove touch sensor.

§ setAmbientLight()

void setAmbientLight ( Color  light)

Set ambient light.

§ setDisableLights()

void setDisableLights ( bool  disable)

Set if all lights are disabled rendering world in full bright.

§ setGravity()

void setGravity ( Vector  gravity)

Set gravity vector.

§ setHeightTerrain()

void setHeightTerrain ( HeightTerrain  heightTerrain)

Set height terrain or null if not set.

§ setLightColorMatrix()

void setLightColorMatrix ( Matrix  matrix)

Set light color matrix.

§ setSize()

void setSize ( DVector  size)

Set size of the world.

§ setSky()

void setSky ( Sky  sky)

Set sky or null if not set.

§ update()

void update ( float  elapsed)

Update the world.

The documentation for this class was generated from the following file: