Drag[en]gine Script Module DragonScript
1.23
|
Spawn point for actors and props. More...
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... | |
Spawn point for actors and props.
Spawn points have a unique name and are added to the SpawnPointList of a GameWorld.
DMatrix Dragengine.Scenery.SpawnPoint.getMatrix | ( | ) |
Spawn matrix.
String Dragengine.Scenery.SpawnPoint.getName | ( | ) |
Unique name of spawn point.
Quaternion Dragengine.Scenery.SpawnPoint.getOrientation | ( | ) |
Spawn orientation.
DVector Dragengine.Scenery.SpawnPoint.getPosition | ( | ) |
Spawn position.
SpawnPoint Dragengine.Scenery.SpawnPoint.new | ( | String | name | ) |
Create spawn point.
void Dragengine.Scenery.SpawnPoint.setOrientation | ( | Quaternion | orientation | ) |
Set spawn orientation.
void Dragengine.Scenery.SpawnPoint.setPosition | ( | DVector | position | ) |
Set spawn position.
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.
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.