Drag[en]gine Script Module DragonScript  1.23
Dragengine.Scenery.SpawnPoint Class Reference

Spawn point for actors and props. More...

Inheritance diagram for Dragengine.Scenery.SpawnPoint:

Public Member Functions

DMatrix getMatrix ()
 Spawn matrix. More...
 
String getName ()
 Unique name of spawn point. More...
 
Quaternion getOrientation ()
 Spawn orientation. More...
 
DVector getPosition ()
 Spawn position. More...
 
SpawnPoint new (String name)
 Create spawn point. More...
 
void setOrientation (Quaternion orientation)
 Set spawn orientation. More...
 
void setPosition (DVector position)
 Set spawn position. More...
 
void spawn (GameWorld gameWorld, Element element)
 Spawn element in game world at position and orientation defined in the spawn point. More...
 
void spawn (GameWorld gameWorld, Element element, Vector position, Vector rotation)
 Spawn element in game world at position and orientation defined in the spawn point. More...
 

Detailed Description

Spawn point for actors and props.

Spawn points have a unique name and are added to the SpawnPointList of a GameWorld.

Member Function Documentation

◆ getMatrix()

DMatrix Dragengine.Scenery.SpawnPoint.getMatrix ( )

Spawn matrix.

◆ getName()

String Dragengine.Scenery.SpawnPoint.getName ( )

Unique name of spawn point.

◆ getOrientation()

Quaternion Dragengine.Scenery.SpawnPoint.getOrientation ( )

Spawn orientation.

◆ getPosition()

DVector Dragengine.Scenery.SpawnPoint.getPosition ( )

Spawn position.

◆ new()

SpawnPoint Dragengine.Scenery.SpawnPoint.new ( String  name)

Create spawn point.

◆ setOrientation()

void Dragengine.Scenery.SpawnPoint.setOrientation ( Quaternion  orientation)

Set spawn orientation.

◆ setPosition()

void Dragengine.Scenery.SpawnPoint.setPosition ( DVector  position)

Set spawn position.

◆ spawn() [1/2]

void Dragengine.Scenery.SpawnPoint.spawn ( GameWorld  gameWorld,
Element  element 
)

Spawn element in game world at position and orientation defined in the spawn point.

If the element is spawned already in another world it teleport instead.

◆ spawn() [2/2]

void Dragengine.Scenery.SpawnPoint.spawn ( GameWorld  gameWorld,
Element  element,
Vector  position,
Vector  rotation 
)

Spawn element in game world at position and orientation defined in the spawn point.

The position and rotation are relative to the spawn point. If the element is already in the game world teleports the element instead.


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