|
Drag[en]gine Script Module DragonScript 1.35
|
Spawn point for actors and props. More...
Public Member Functions | |
| DMatrix | getMatrix () |
| Spawn matrix. | |
| String | getName () |
| Unique name of spawn point. | |
| Quaternion | getOrientation () |
| Spawn orientation. | |
| DVector | getPosition () |
| Spawn position. | |
| SpawnPoint | new (String name) |
| Create spawn point. | |
| void | setOrientation (Quaternion orientation) |
| Set spawn orientation. | |
| void | setPosition (DVector position) |
| Set spawn position. | |
| void | spawn (GameWorld gameWorld, Element element) |
| Spawn element in game world at position and orientation defined in the spawn point. | |
| void | spawn (GameWorld gameWorld, Element element, Vector position, Vector rotation) |
| Spawn element in game world at position and orientation defined in the spawn point. | |
Public Attributes | |
| String | pName |
| Quaternion | pOrientation |
| DVector | pPosition |
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 | ( | ) |
| String Dragengine.Scenery.SpawnPoint.getName | ( | ) |
| Quaternion Dragengine.Scenery.SpawnPoint.getOrientation | ( | ) |
| DVector Dragengine.Scenery.SpawnPoint.getPosition | ( | ) |
| SpawnPoint Dragengine.Scenery.SpawnPoint.new | ( | String | name | ) |
| void Dragengine.Scenery.SpawnPoint.setOrientation | ( | Quaternion | orientation | ) |
Set spawn orientation.
Referenced by spawn().
| void Dragengine.Scenery.SpawnPoint.setPosition | ( | DVector | 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.
References getOrientation(), pOrientation, and setOrientation().
Referenced by spawn().
| 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.
References getMatrix(), pOrientation, pPosition, and spawn().
| String Dragengine.Scenery.SpawnPoint.pName |
Referenced by getName(), and setPosition().
| Quaternion Dragengine.Scenery.SpawnPoint.pOrientation |
| DVector Dragengine.Scenery.SpawnPoint.pPosition |
Referenced by getMatrix(), getOrientation(), and spawn().