Drag[en]gine Script Module DragonScript
1.23
|
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... | |
This is a native class.
void Dragengine.Scenery.World.addBillboard | ( | Billboard | billboard | ) |
Add billboard.
void Dragengine.Scenery.World.addCamera | ( | Camera | camera | ) |
Add camera.
void Dragengine.Scenery.World.addCollider | ( | Collider | collider | ) |
Add collider.
void Dragengine.Scenery.World.addComponent | ( | Component | comp | ) |
Add component.
void Dragengine.Scenery.World.addDebugDrawer | ( | DebugDrawer | debugDrawer | ) |
Add debug drawer.
void Dragengine.Scenery.World.addEnvMapProbe | ( | EnvMapProbe | envMapProbe | ) |
Add environment map probe if absent.
void Dragengine.Scenery.World.addForceField | ( | ForceField | forcefield | ) |
Add force field.
void Dragengine.Scenery.World.addLight | ( | Light | light | ) |
Add light.
void Dragengine.Scenery.World.addLumimeter | ( | Lumimeter | lumimeter | ) |
Add lumimeter.
void Dragengine.Scenery.World.addMicrophone | ( | Microphone | microphone | ) |
Add microphone.
void Dragengine.Scenery.World.addNavigationBlocker | ( | NavigationBlocker | blocker | ) |
Add navigation blockers if absent.
void Dragengine.Scenery.World.addNavigationSpace | ( | NavigationSpace | navspace | ) |
Add navigation space if absent.
void Dragengine.Scenery.World.addNavigator | ( | Navigator | navigator | ) |
Add navigator if absent.
void Dragengine.Scenery.World.addNetworkState | ( | NetworkState | networkState | ) |
Add network state.
void Dragengine.Scenery.World.addParticleEmitter | ( | ParticleEmitterInstance | emitter | ) |
Add particle emitter.
void Dragengine.Scenery.World.addPropField | ( | PropField | propfield | ) |
Add prop field.
void Dragengine.Scenery.World.addSky | ( | SkyInstance | sky | ) |
Add sky.
void Dragengine.Scenery.World.addSoundLevelMeter | ( | SoundLevelMeter | soundLevelMeter | ) |
Add sound level meter.
void Dragengine.Scenery.World.addSpeaker | ( | Speaker | speaker | ) |
Add speaker.
void Dragengine.Scenery.World.addTouchSensor | ( | TouchSensor | touchSensor | ) |
Add touch sensor.
void Dragengine.Scenery.World.colliderHits | ( | Collider | collider, |
ColliderListener | listener | ||
) |
Static collider intersection test.
void Dragengine.Scenery.World.colliderMoveHits | ( | Collider | collider, |
Vector | displacement, | ||
ColliderListener | listener | ||
) |
Moving collider collision test.
void Dragengine.Scenery.World.colliderMoveHitsClosest | ( | Collider | collider, |
Vector | displacement, | ||
ColliderListener | listener | ||
) |
Moving collider collision test reporting only closest hit.
void Dragengine.Scenery.World.detectCollisions | ( | float | elapsed | ) |
Detect collisions.
bool Dragengine.Scenery.World.equals | ( | Object | other | ) |
Color Dragengine.Scenery.World.getAmbientLight | ( | ) |
Ambient light.
int Dragengine.Scenery.World.getBillboardCount | ( | ) |
Number of billboards.
int Dragengine.Scenery.World.getCameraCount | ( | ) |
Number of camera.
int Dragengine.Scenery.World.getColliderCount | ( | ) |
Number of colliders.
int Dragengine.Scenery.World.getComponentCount | ( | ) |
Number of components.
int Dragengine.Scenery.World.getDebugDrawerCount | ( | ) |
Number of debug drawers.
bool Dragengine.Scenery.World.getDisableLights | ( | ) |
All lights are disabled rendering world in full bright.
int Dragengine.Scenery.World.getEnvMapProbeCount | ( | ) |
Number of environment map probes.
int Dragengine.Scenery.World.getForceFieldCount | ( | ) |
Number of force fields.
Vector Dragengine.Scenery.World.getGravity | ( | ) |
Gravity vector.
HeightTerrain Dragengine.Scenery.World.getHeightTerrain | ( | ) |
Hheight terrain or null if not set.
int Dragengine.Scenery.World.getLightCount | ( | ) |
Number of lights.
int Dragengine.Scenery.World.getLumimeterCount | ( | ) |
Number of lumimeters.
int Dragengine.Scenery.World.getMicrophoneCount | ( | ) |
Number of microphones.
int Dragengine.Scenery.World.getNavigationBlockerCount | ( | ) |
Number of navigation blockers.
int Dragengine.Scenery.World.getNavigationSpaceCount | ( | ) |
Number of navigation spaces.
int Dragengine.Scenery.World.getNavigatorCount | ( | ) |
Number of navigators.
int Dragengine.Scenery.World.getNetworkStateCount | ( | ) |
Number of network states.
int Dragengine.Scenery.World.getParticleEmitterCount | ( | ) |
Number of particle emitters.
int Dragengine.Scenery.World.getPropFieldCount | ( | ) |
Number of prop fields.
DVector Dragengine.Scenery.World.getSize | ( | ) |
Size of the world.
int Dragengine.Scenery.World.getSkyCount | ( | ) |
Number of skies.
int Dragengine.Scenery.World.getSoundLevelMeterCount | ( | ) |
Number of sound level meters.
int Dragengine.Scenery.World.getSpeakerCount | ( | ) |
Number of speakers.
float Dragengine.Scenery.World.getSpeakerGain | ( | ) |
Gain to multiply all speakers with.
int Dragengine.Scenery.World.getTouchSensorCount | ( | ) |
Number of touch sensors.
int Dragengine.Scenery.World.hashCode | ( | ) |
Hash code for use as dictionary keys.
Implements Object.hashCode().
World Dragengine.Scenery.World.new | ( | ) |
Create world.
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.
void Dragengine.Scenery.World.rayHits | ( | DVector | rayOrigin, |
Vector | rayDirection, | ||
ColliderListener | listener, | ||
CollisionFilter | collisionFilter | ||
) |
Ray cast intersection test.
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.
void Dragengine.Scenery.World.removeAllBillboards | ( | ) |
Remove all billboards.
void Dragengine.Scenery.World.removeAllCameras | ( | ) |
Remove all cameras.
void Dragengine.Scenery.World.removeAllColliders | ( | ) |
Remove all colliders.
void Dragengine.Scenery.World.removeAllComponents | ( | ) |
Remove all components.
void Dragengine.Scenery.World.removeAllDebugDrawers | ( | ) |
Remove all debug drawers.
void Dragengine.Scenery.World.removeAllEnvMapProbes | ( | ) |
Remove all environment map probes.
void Dragengine.Scenery.World.removeAllForceFields | ( | ) |
Remove all force fields.
void Dragengine.Scenery.World.removeAllLights | ( | ) |
Remove all lights.
void Dragengine.Scenery.World.removeAllLumimeters | ( | ) |
Remove all lumimeters.
void Dragengine.Scenery.World.removeAllMicrophones | ( | ) |
Remove all microphones.
void Dragengine.Scenery.World.removeAllNavigationBlockers | ( | ) |
Remove all navigation blockers.
void Dragengine.Scenery.World.removeAllNavigationSpaces | ( | ) |
Remove all navigation spaces.
void Dragengine.Scenery.World.removeAllNavigators | ( | ) |
Remove all navigators.
void Dragengine.Scenery.World.removeAllNetworkStates | ( | ) |
Remove all network states.
void Dragengine.Scenery.World.removeAllParticleEmitters | ( | ) |
Remove all particle emitters.
void Dragengine.Scenery.World.removeAllPropFields | ( | ) |
Remove all prop fields.
void Dragengine.Scenery.World.removeAllSkies | ( | ) |
Remove all skies.
void Dragengine.Scenery.World.removeAllSoundLevelMeters | ( | ) |
Remove all sound level meters.
void Dragengine.Scenery.World.removeAllSpeakers | ( | ) |
Remove all speakers.
void Dragengine.Scenery.World.removeAllTouchSensors | ( | ) |
Remove all touch sensors.
void Dragengine.Scenery.World.removeBillboard | ( | Billboard | billboard | ) |
Remove billboard.
void Dragengine.Scenery.World.removeCamera | ( | Camera | camera | ) |
Remove camera.
void Dragengine.Scenery.World.removeCollider | ( | Collider | collider | ) |
Remove collider.
void Dragengine.Scenery.World.removeComponent | ( | Component | comp | ) |
Remove component.
void Dragengine.Scenery.World.removeDebugDrawer | ( | DebugDrawer | debugDrawer | ) |
Remove debug drawer.
void Dragengine.Scenery.World.removeEnvMapProbe | ( | EnvMapProbe | envMapProbe | ) |
Remove environment map probe if present.
void Dragengine.Scenery.World.removeForceField | ( | ForceField | forcefield | ) |
Remove force field.
void Dragengine.Scenery.World.removeLight | ( | Light | light | ) |
Remove light.
void Dragengine.Scenery.World.removeLumimeter | ( | Lumimeter | lumimeter | ) |
Remove lumimeter.
void Dragengine.Scenery.World.removeMicrophone | ( | Microphone | microphone | ) |
Remove microphone.
void Dragengine.Scenery.World.removeNavigationBlocker | ( | NavigationBlocker | blocker | ) |
Remove navigation blocker if present.
void Dragengine.Scenery.World.removeNavigationSpace | ( | NavigationSpace | navspace | ) |
Remove navigation space if present.
void Dragengine.Scenery.World.removeNavigator | ( | Navigator | navigator | ) |
Remove navigator if present.
void Dragengine.Scenery.World.removeNetworkState | ( | NetworkState | networkState | ) |
Remove network state.
void Dragengine.Scenery.World.removeParticleEmitter | ( | ParticleEmitterInstance | emitter | ) |
Remove particle emitter.
void Dragengine.Scenery.World.removePropField | ( | PropField | propfield | ) |
Remove prop field.
void Dragengine.Scenery.World.removeSky | ( | SkyInstance | sky | ) |
Remove sky.
void Dragengine.Scenery.World.removeSoundLevelMeter | ( | SoundLevelMeter | soundLevelMeter | ) |
Remove sound level meter.
void Dragengine.Scenery.World.removeSpeaker | ( | Speaker | speaker | ) |
Remove speaker.
void Dragengine.Scenery.World.removeTouchSensor | ( | TouchSensor | touchSensor | ) |
Remove touch sensor.
void Dragengine.Scenery.World.setAmbientLight | ( | Color | light | ) |
Set ambient light.
void Dragengine.Scenery.World.setDisableLights | ( | bool | disable | ) |
Set if all lights are disabled rendering world in full bright.
void Dragengine.Scenery.World.setGravity | ( | Vector | gravity | ) |
Set gravity vector.
void Dragengine.Scenery.World.setHeightTerrain | ( | HeightTerrain | heightTerrain | ) |
Set height terrain or null if not set.
void Dragengine.Scenery.World.setLightColorMatrix | ( | Matrix | matrix | ) |
Set light color matrix.
void Dragengine.Scenery.World.setSize | ( | DVector | size | ) |
Set size of the world.
void Dragengine.Scenery.World.setSpeakerGain | ( | float | gain | ) |
Set gain to multiply all speakers with.
void Dragengine.Scenery.World.update | ( | float | elapsed | ) |
Update the world.