Drag[en]gine Script Module DragonScript  1.21
Dragengine.Scenery.World Class Reference

World. More...

Inheritance diagram for Dragengine.Scenery.World:

Public Member Functions

Constructors
World new ()
 Create world. More...
 
Management
void detectCollisions (float elapsed)
 Detect collisions. 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...
 
Physics
Vector getGravity ()
 Gravity vector. More...
 
void setGravity (Vector gravity)
 Set gravity vector. More...
 
Audio
float getSpeakerGain ()
 Gain to multiply all speakers with. More...
 
void setSpeakerGain (float gain)
 Set gain to multiply all speakers with. More...
 
Lighting
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...
 
Skies
int getSkyCount ()
 Number of skies. More...
 
void addSky (SkyInstance sky)
 Add sky. More...
 
void removeSky (SkyInstance sky)
 Remove sky. More...
 
void removeAllSkies ()
 Remove all skies. 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...
 
Cameras
int getCameraCount ()
 Number of camera. More...
 
void addCamera (Camera camera)
 Add camera. More...
 
void removeCamera (Camera camera)
 Remove camera. More...
 
void removeAllCameras ()
 Remove all cameras. More...
 
Speakers
int getSpeakerCount ()
 Number of speakers. More...
 
void addSpeaker (Speaker speaker)
 Add speaker. More...
 
void removeSpeaker (Speaker speaker)
 Remove speaker. More...
 
void removeAllSpeakers ()
 Remove all speakers. More...
 
Microphones
int getMicrophoneCount ()
 Number of microphones. More...
 
void addMicrophone (Microphone microphone)
 Add microphone. More...
 
void removeMicrophone (Microphone microphone)
 Remove microphone. More...
 
void removeAllMicrophones ()
 Remove all microphones. More...
 
Sound level meters
int getSoundLevelMeterCount ()
 Number of sound level meters. More...
 
void addSoundLevelMeter (SoundLevelMeter soundLevelMeter)
 Add sound level meter. More...
 
void removeSoundLevelMeter (SoundLevelMeter soundLevelMeter)
 Remove sound level meter. More...
 
void removeAllSoundLevelMeters ()
 Remove all sound level meters. More...
 
Network states
int getNetworkStateCount ()
 Number of network states. More...
 
void addNetworkState (NetworkState networkState)
 Add network state. More...
 
void removeNetworkState (NetworkState networkState)
 Remove network state. More...
 
void removeAllNetworkStates ()
 Remove all network states. More...
 
Components
int getComponentCount ()
 Number of components. More...
 
void addComponent (Component comp)
 Add component. More...
 
void removeComponent (Component comp)
 Remove component. More...
 
void removeAllComponents ()
 Remove all components. More...
 
Lights
int getLightCount ()
 Number of lights. More...
 
void addLight (Light light)
 Add light. More...
 
void removeLight (Light light)
 Remove light. More...
 
void removeAllLights ()
 Remove all lights. More...
 
Colliders
int getColliderCount ()
 Number of colliders. More...
 
void addCollider (Collider collider)
 Add collider. More...
 
void removeCollider (Collider collider)
 Remove collider. More...
 
void removeAllColliders ()
 Remove all colliders. More...
 
Lumimeters
int getLumimeterCount ()
 Number of lumimeters. 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...
 
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...
 
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...
 
void addForceField (ForceField forcefield)
 Add force field. More...
 
void removeForceField (ForceField forcefield)
 Remove force field. More...
 
void removeAllForceFields ()
 Remove all force fields. More...
 
Particle emitters
int getParticleEmitterCount ()
 Number of particle emitters. More...
 
void addParticleEmitter (ParticleEmitterInstance emitter)
 Add particle emitter. More...
 
void removeParticleEmitter (ParticleEmitterInstance emitter)
 Remove particle emitter. More...
 
void removeAllParticleEmitters ()
 Remove all particle emitters. More...
 
Debug drawers
int getDebugDrawerCount ()
 Number of debug drawers. More...
 
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
int getNavigationSpaceCount ()
 Number of navigation spaces. More...
 
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
int getNavigationBlockerCount ()
 Number of navigation blockers. More...
 
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...
 
Navigators
int getNavigatorCount ()
 Number of navigators. 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
int getEnvMapProbeCount ()
 Number of environment map probes. More...
 
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...
 
Billboards
int getBillboardCount ()
 Number of billboards. More...
 
void addBillboard (Billboard billboard)
 Add billboard. More...
 
void removeBillboard (Billboard billboard)
 Remove billboard. More...
 
void removeAllBillboards ()
 Remove all billboards. More...
 
Collision detection.
void pointHits (DVector point, ColliderListener listener, CollisionFilter collisionFilter)
 Test a point for collision with colliders. More...
 
void colliderHits (Collider collider, ColliderListener listener)
 Static collider intersection test. More...
 
void colliderMoveHits (Collider collider, Vector displacement, ColliderListener listener)
 Moving collider collision test. More...
 
void colliderMoveHitsClosest (Collider collider, Vector displacement, ColliderListener listener)
 Moving collider collision test reporting only closest hit. 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...
 
bool equals (Object other)
 World is equal to another object. More...
 
int hashCode ()
 Hash code for use as dictionary keys. More...
 

Detailed Description

World.

This is a native class.

Member Function Documentation

◆ addBillboard()

void Dragengine.Scenery.World.addBillboard ( Billboard  billboard)

Add billboard.

◆ addCamera()

void Dragengine.Scenery.World.addCamera ( Camera  camera)

Add camera.

◆ addCollider()

void Dragengine.Scenery.World.addCollider ( Collider  collider)

Add collider.

◆ addComponent()

void Dragengine.Scenery.World.addComponent ( Component  comp)

Add component.

◆ addDebugDrawer()

void Dragengine.Scenery.World.addDebugDrawer ( DebugDrawer  debugDrawer)

Add debug drawer.

◆ addEnvMapProbe()

void Dragengine.Scenery.World.addEnvMapProbe ( EnvMapProbe  envMapProbe)

Add environment map probe if absent.

◆ addForceField()

void Dragengine.Scenery.World.addForceField ( ForceField  forcefield)

Add force field.

◆ addLight()

void Dragengine.Scenery.World.addLight ( Light  light)

Add light.

◆ addLumimeter()

void Dragengine.Scenery.World.addLumimeter ( Lumimeter  lumimeter)

Add lumimeter.

◆ addMicrophone()

void Dragengine.Scenery.World.addMicrophone ( Microphone  microphone)

Add microphone.

◆ addNavigationBlocker()

void Dragengine.Scenery.World.addNavigationBlocker ( NavigationBlocker  blocker)

Add navigation blockers if absent.

◆ addNavigationSpace()

void Dragengine.Scenery.World.addNavigationSpace ( NavigationSpace  navspace)

Add navigation space if absent.

◆ addNavigator()

void Dragengine.Scenery.World.addNavigator ( Navigator  navigator)

Add navigator if absent.

◆ addNetworkState()

void Dragengine.Scenery.World.addNetworkState ( NetworkState  networkState)

Add network state.

◆ addParticleEmitter()

void Dragengine.Scenery.World.addParticleEmitter ( ParticleEmitterInstance  emitter)

Add particle emitter.

◆ addPropField()

void Dragengine.Scenery.World.addPropField ( PropField  propfield)

Add prop field.

◆ addSky()

void Dragengine.Scenery.World.addSky ( SkyInstance  sky)

Add sky.

◆ addSoundLevelMeter()

void Dragengine.Scenery.World.addSoundLevelMeter ( SoundLevelMeter  soundLevelMeter)

Add sound level meter.

◆ addSpeaker()

void Dragengine.Scenery.World.addSpeaker ( Speaker  speaker)

Add speaker.

◆ addTouchSensor()

void Dragengine.Scenery.World.addTouchSensor ( TouchSensor  touchSensor)

Add touch sensor.

◆ colliderHits()

void Dragengine.Scenery.World.colliderHits ( Collider  collider,
ColliderListener  listener 
)

Static collider intersection test.

◆ colliderMoveHits()

void Dragengine.Scenery.World.colliderMoveHits ( Collider  collider,
Vector  displacement,
ColliderListener  listener 
)

Moving collider collision test.

◆ colliderMoveHitsClosest()

void Dragengine.Scenery.World.colliderMoveHitsClosest ( Collider  collider,
Vector  displacement,
ColliderListener  listener 
)

Moving collider collision test reporting only closest hit.

◆ detectCollisions()

void Dragengine.Scenery.World.detectCollisions ( float  elapsed)

Detect collisions.

◆ equals()

bool Dragengine.Scenery.World.equals ( Object  other)

World is equal to another object.

Implements Object.equals(Object).

Returns
true if other is of type World and both point to the same engine world resource.

◆ getAmbientLight()

Color Dragengine.Scenery.World.getAmbientLight ( )

Ambient light.

◆ getBillboardCount()

int Dragengine.Scenery.World.getBillboardCount ( )

Number of billboards.

◆ getCameraCount()

int Dragengine.Scenery.World.getCameraCount ( )

Number of camera.

◆ getColliderCount()

int Dragengine.Scenery.World.getColliderCount ( )

Number of colliders.

◆ getComponentCount()

int Dragengine.Scenery.World.getComponentCount ( )

Number of components.

◆ getDebugDrawerCount()

int Dragengine.Scenery.World.getDebugDrawerCount ( )

Number of debug drawers.

◆ getDisableLights()

bool Dragengine.Scenery.World.getDisableLights ( )

All lights are disabled rendering world in full bright.

◆ getEnvMapProbeCount()

int Dragengine.Scenery.World.getEnvMapProbeCount ( )

Number of environment map probes.

◆ getForceFieldCount()

int Dragengine.Scenery.World.getForceFieldCount ( )

Number of force fields.

◆ getGravity()

Vector Dragengine.Scenery.World.getGravity ( )

Gravity vector.

◆ getHeightTerrain()

HeightTerrain Dragengine.Scenery.World.getHeightTerrain ( )

Hheight terrain or null if not set.

◆ getLightColorMatrix()

Matrix Dragengine.Scenery.World.getLightColorMatrix ( )

Light color matrix.

◆ getLightCount()

int Dragengine.Scenery.World.getLightCount ( )

Number of lights.

◆ getLumimeterCount()

int Dragengine.Scenery.World.getLumimeterCount ( )

Number of lumimeters.

◆ getMicrophoneCount()

int Dragengine.Scenery.World.getMicrophoneCount ( )

Number of microphones.

◆ getNavigationBlockerCount()

int Dragengine.Scenery.World.getNavigationBlockerCount ( )

Number of navigation blockers.

◆ getNavigationSpaceCount()

int Dragengine.Scenery.World.getNavigationSpaceCount ( )

Number of navigation spaces.

◆ getNavigatorCount()

int Dragengine.Scenery.World.getNavigatorCount ( )

Number of navigators.

◆ getNetworkStateCount()

int Dragengine.Scenery.World.getNetworkStateCount ( )

Number of network states.

◆ getParticleEmitterCount()

int Dragengine.Scenery.World.getParticleEmitterCount ( )

Number of particle emitters.

◆ getPropFieldCount()

int Dragengine.Scenery.World.getPropFieldCount ( )

Number of prop fields.

◆ getSize()

DVector Dragengine.Scenery.World.getSize ( )

Size of the world.

◆ getSkyCount()

int Dragengine.Scenery.World.getSkyCount ( )

Number of skies.

◆ getSoundLevelMeterCount()

int Dragengine.Scenery.World.getSoundLevelMeterCount ( )

Number of sound level meters.

◆ getSpeakerCount()

int Dragengine.Scenery.World.getSpeakerCount ( )

Number of speakers.

◆ getSpeakerGain()

float Dragengine.Scenery.World.getSpeakerGain ( )

Gain to multiply all speakers with.

Version
1.16

◆ getTouchSensorCount()

int Dragengine.Scenery.World.getTouchSensorCount ( )

Number of touch sensors.

◆ hashCode()

int Dragengine.Scenery.World.hashCode ( )

Hash code for use as dictionary keys.

Implements Object.hashCode().

◆ new()

World Dragengine.Scenery.World.new ( )

Create world.

◆ pointHits()

void Dragengine.Scenery.World.pointHits ( DVector  point,
ColliderListener  listener,
CollisionFilter  collisionFilter 
)

Test a point for collision with colliders.

For each collision the collisionResponse function the given listener is called. To stop testing set StopTesting in the provided collision information object to true.

◆ rayHits()

void Dragengine.Scenery.World.rayHits ( DVector  rayOrigin,
Vector  rayDirection,
ColliderListener  listener,
CollisionFilter  collisionFilter 
)

Ray cast intersection test.

◆ rayHitsClosest()

void Dragengine.Scenery.World.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.

◆ removeAllBillboards()

void Dragengine.Scenery.World.removeAllBillboards ( )

Remove all billboards.

◆ removeAllCameras()

void Dragengine.Scenery.World.removeAllCameras ( )

Remove all cameras.

◆ removeAllColliders()

void Dragengine.Scenery.World.removeAllColliders ( )

Remove all colliders.

◆ removeAllComponents()

void Dragengine.Scenery.World.removeAllComponents ( )

Remove all components.

◆ removeAllDebugDrawers()

void Dragengine.Scenery.World.removeAllDebugDrawers ( )

Remove all debug drawers.

◆ removeAllEnvMapProbes()

void Dragengine.Scenery.World.removeAllEnvMapProbes ( )

Remove all environment map probes.

◆ removeAllForceFields()

void Dragengine.Scenery.World.removeAllForceFields ( )

Remove all force fields.

◆ removeAllLights()

void Dragengine.Scenery.World.removeAllLights ( )

Remove all lights.

◆ removeAllLumimeters()

void Dragengine.Scenery.World.removeAllLumimeters ( )

Remove all lumimeters.

◆ removeAllMicrophones()

void Dragengine.Scenery.World.removeAllMicrophones ( )

Remove all microphones.

◆ removeAllNavigationBlockers()

void Dragengine.Scenery.World.removeAllNavigationBlockers ( )

Remove all navigation blockers.

◆ removeAllNavigationSpaces()

void Dragengine.Scenery.World.removeAllNavigationSpaces ( )

Remove all navigation spaces.

◆ removeAllNavigators()

void Dragengine.Scenery.World.removeAllNavigators ( )

Remove all navigators.

◆ removeAllNetworkStates()

void Dragengine.Scenery.World.removeAllNetworkStates ( )

Remove all network states.

◆ removeAllParticleEmitters()

void Dragengine.Scenery.World.removeAllParticleEmitters ( )

Remove all particle emitters.

◆ removeAllPropFields()

void Dragengine.Scenery.World.removeAllPropFields ( )

Remove all prop fields.

◆ removeAllSkies()

void Dragengine.Scenery.World.removeAllSkies ( )

Remove all skies.

◆ removeAllSoundLevelMeters()

void Dragengine.Scenery.World.removeAllSoundLevelMeters ( )

Remove all sound level meters.

◆ removeAllSpeakers()

void Dragengine.Scenery.World.removeAllSpeakers ( )

Remove all speakers.

◆ removeAllTouchSensors()

void Dragengine.Scenery.World.removeAllTouchSensors ( )

Remove all touch sensors.

◆ removeBillboard()

void Dragengine.Scenery.World.removeBillboard ( Billboard  billboard)

Remove billboard.

◆ removeCamera()

void Dragengine.Scenery.World.removeCamera ( Camera  camera)

Remove camera.

◆ removeCollider()

void Dragengine.Scenery.World.removeCollider ( Collider  collider)

Remove collider.

◆ removeComponent()

void Dragengine.Scenery.World.removeComponent ( Component  comp)

Remove component.

◆ removeDebugDrawer()

void Dragengine.Scenery.World.removeDebugDrawer ( DebugDrawer  debugDrawer)

Remove debug drawer.

◆ removeEnvMapProbe()

void Dragengine.Scenery.World.removeEnvMapProbe ( EnvMapProbe  envMapProbe)

Remove environment map probe if present.

◆ removeForceField()

void Dragengine.Scenery.World.removeForceField ( ForceField  forcefield)

Remove force field.

◆ removeLight()

void Dragengine.Scenery.World.removeLight ( Light  light)

Remove light.

◆ removeLumimeter()

void Dragengine.Scenery.World.removeLumimeter ( Lumimeter  lumimeter)

Remove lumimeter.

◆ removeMicrophone()

void Dragengine.Scenery.World.removeMicrophone ( Microphone  microphone)

Remove microphone.

◆ removeNavigationBlocker()

void Dragengine.Scenery.World.removeNavigationBlocker ( NavigationBlocker  blocker)

Remove navigation blocker if present.

◆ removeNavigationSpace()

void Dragengine.Scenery.World.removeNavigationSpace ( NavigationSpace  navspace)

Remove navigation space if present.

◆ removeNavigator()

void Dragengine.Scenery.World.removeNavigator ( Navigator  navigator)

Remove navigator if present.

◆ removeNetworkState()

void Dragengine.Scenery.World.removeNetworkState ( NetworkState  networkState)

Remove network state.

◆ removeParticleEmitter()

void Dragengine.Scenery.World.removeParticleEmitter ( ParticleEmitterInstance  emitter)

Remove particle emitter.

◆ removePropField()

void Dragengine.Scenery.World.removePropField ( PropField  propfield)

Remove prop field.

◆ removeSky()

void Dragengine.Scenery.World.removeSky ( SkyInstance  sky)

Remove sky.

◆ removeSoundLevelMeter()

void Dragengine.Scenery.World.removeSoundLevelMeter ( SoundLevelMeter  soundLevelMeter)

Remove sound level meter.

◆ removeSpeaker()

void Dragengine.Scenery.World.removeSpeaker ( Speaker  speaker)

Remove speaker.

◆ removeTouchSensor()

void Dragengine.Scenery.World.removeTouchSensor ( TouchSensor  touchSensor)

Remove touch sensor.

◆ setAmbientLight()

void Dragengine.Scenery.World.setAmbientLight ( Color  light)

Set ambient light.

◆ setDisableLights()

void Dragengine.Scenery.World.setDisableLights ( bool  disable)

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

◆ setGravity()

void Dragengine.Scenery.World.setGravity ( Vector  gravity)

Set gravity vector.

◆ setHeightTerrain()

void Dragengine.Scenery.World.setHeightTerrain ( HeightTerrain  heightTerrain)

Set height terrain or null if not set.

◆ setLightColorMatrix()

void Dragengine.Scenery.World.setLightColorMatrix ( Matrix  matrix)

Set light color matrix.

◆ setSize()

void Dragengine.Scenery.World.setSize ( DVector  size)

Set size of the world.

◆ setSpeakerGain()

void Dragengine.Scenery.World.setSpeakerGain ( float  gain)

Set gain to multiply all speakers with.

Version
1.16

◆ update()

void Dragengine.Scenery.World.update ( float  elapsed)

Update the world.


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