Drag[en]gine Script Module DragonScript
1.23
|
Navigation space. More...
Public Member Functions | |
Constructors | |
NavigationSpace | new () |
Create navigation space. More... | |
NavigationSpace | new (NavigationSpace navigationSpace) |
Create copy of navigation space. More... | |
Management | |
DVector | getPosition () |
Position. More... | |
void | setPosition (DVector position) |
Set position. More... | |
Quaternion | getOrientation () |
Orientation. More... | |
void | setOrientation (Quaternion orientation) |
Set orientation. More... | |
int | getLayer () |
Layer number. More... | |
void | setLayer (int layer) |
Set layer number. More... | |
NavigationSpaceType | getType () |
Space type. More... | |
void | setType (NavigationSpaceType type) |
Set space type. More... | |
int | getBlockingPriority () |
Blocking priority. More... | |
void | setBlockingPriority (int priority) |
Set blocking priority. More... | |
float | getSnapDistance () |
Snap distance in meters up to which edges are linked to neighbor spaces. More... | |
void | setSnapDistance (float distance) |
Set snap distance in meters up to which edges are linked to neighbor spaces. More... | |
float | getSnapAngle () |
Snap angle in degrees up to which edges are linked to neighbor spaces. More... | |
void | setSnapAngle (float angle) |
Set snap angle in degrees up to which edges are linked to neighbor spaces. More... | |
void | layoutChanged () |
Notifies the peers that the layout of the navigation space changed. More... | |
ShapeList | getBlockerShapeList () |
Blocker shape list. More... | |
void | setBlockerShapeList (ShapeList shapeList) |
Set blocker shape list. More... | |
Vertices (grid, space, volume) | |
int | getVertexCount () |
Number of vertices.. More... | |
void | setVertexCount (int count) |
Set number of vertices. More... | |
Vector | getVertexAt (int index) |
Vertex at index. More... | |
void | setVertexAt (int index, Vector position) |
Set vertex at index. More... | |
Edges (grid, space, volume) | |
int | getEdgeCount () |
Number of edges. More... | |
void | setEdgeCount (int count) |
Set number of edges. More... | |
int | getEdgeVertex1 (int edge) |
Index of the first vertex of edge at index. More... | |
int | getEdgeVertex2 (int edge) |
Index of the second vertex of edge at index. More... | |
int | getEdgeType1 (int edge) |
Type number to use for the edge at position crossing the edge from the first to the second vertex. More... | |
int | getEdgeType2 (int edge) |
Type number to use for the edge at position crossing the edge from the second to the first vertex. More... | |
void | setEdgeAt (int edge, int vertex1, int vertex2, int type1, int type2) |
Set parameters for edge at index. More... | |
Corners (space, volume) | |
int | getCornerCount () |
Number of corners. More... | |
void | setCornerCount (int count) |
Set number of corners. More... | |
int | getCornerVertex (int corner) |
Index of the vertex for corner at index. More... | |
int | getCornerType (int corner) |
Type number for corner at position used when crossing the edge from the parent face to the other face. More... | |
void | setCornerAt (int corner, int vertex, int type) |
Set parameters of corner at index. More... | |
Faces (space, volume) | |
int | getFaceCount () |
Number of faces. More... | |
void | setFaceCount (int count) |
Set number of faces. More... | |
int | getFaceCornerCount (int face) |
Number of corners for face at index. More... | |
int | getFaceType (int face) |
Type number to use while crossing face at index. More... | |
void | setFaceAt (int face, int cornerCount, int type) |
Set parameters of face at index. More... | |
Walls (volume) | |
int | getWallCount () |
Number of walls. More... | |
void | setWallCount (int count) |
Set number of walls. More... | |
int | getWallFace (int wall) |
Index of face for wall at index. More... | |
int | getWallType (int wall) |
Type number to use for crossing wall at index. More... | |
void | setWallAt (int wall, int face, int type) |
Set parameters for wall at index. More... | |
Rooms (volume) | |
int | getRoomCount () |
Number of rooms. More... | |
void | setRoomCount (int count) |
Set number of rooms. More... | |
int | getRoomFrontWallCount (int room) |
Number of front facing walls in room at index. More... | |
int | getRoomBackWallCount (int room) |
Number of back facing walls in room at index. More... | |
int | getRoomType () |
Type number to use for crossing room at index. More... | |
void | setRoomAt (int room, int frontWallCount, int backWallCount, int type) |
Set parameters for room at index. More... | |
Navigation space.
This is a native class.
ShapeList Dragengine.Scenery.NavigationSpace.getBlockerShapeList | ( | ) |
Blocker shape list.
int Dragengine.Scenery.NavigationSpace.getBlockingPriority | ( | ) |
Blocking priority.
Navigation meshes is blocked by all blockers with an equal or larger blocking priority. If a blocker shape exists it blocks all navigation meshes with equal or less blocking priority.
int Dragengine.Scenery.NavigationSpace.getCornerCount | ( | ) |
Number of corners.
int Dragengine.Scenery.NavigationSpace.getCornerType | ( | int | corner | ) |
Type number for corner at position used when crossing the edge from the parent face to the other face.
int Dragengine.Scenery.NavigationSpace.getCornerVertex | ( | int | corner | ) |
Index of the vertex for corner at index.
int Dragengine.Scenery.NavigationSpace.getEdgeCount | ( | ) |
Number of edges.
int Dragengine.Scenery.NavigationSpace.getEdgeType1 | ( | int | edge | ) |
Type number to use for the edge at position crossing the edge from the first to the second vertex.
int Dragengine.Scenery.NavigationSpace.getEdgeType2 | ( | int | edge | ) |
Type number to use for the edge at position crossing the edge from the second to the first vertex.
int Dragengine.Scenery.NavigationSpace.getEdgeVertex1 | ( | int | edge | ) |
Index of the first vertex of edge at index.
int Dragengine.Scenery.NavigationSpace.getEdgeVertex2 | ( | int | edge | ) |
Index of the second vertex of edge at index.
int Dragengine.Scenery.NavigationSpace.getFaceCornerCount | ( | int | face | ) |
Number of corners for face at index.
int Dragengine.Scenery.NavigationSpace.getFaceCount | ( | ) |
Number of faces.
int Dragengine.Scenery.NavigationSpace.getFaceType | ( | int | face | ) |
Type number to use while crossing face at index.
int Dragengine.Scenery.NavigationSpace.getLayer | ( | ) |
Layer number.
Quaternion Dragengine.Scenery.NavigationSpace.getOrientation | ( | ) |
Orientation.
DVector Dragengine.Scenery.NavigationSpace.getPosition | ( | ) |
Position.
int Dragengine.Scenery.NavigationSpace.getRoomBackWallCount | ( | int | room | ) |
Number of back facing walls in room at index.
int Dragengine.Scenery.NavigationSpace.getRoomCount | ( | ) |
Number of rooms.
int Dragengine.Scenery.NavigationSpace.getRoomFrontWallCount | ( | int | room | ) |
Number of front facing walls in room at index.
int Dragengine.Scenery.NavigationSpace.getRoomType | ( | ) |
Type number to use for crossing room at index.
float Dragengine.Scenery.NavigationSpace.getSnapAngle | ( | ) |
Snap angle in degrees up to which edges are linked to neighbor spaces.
The default snap angle is 180°.
float Dragengine.Scenery.NavigationSpace.getSnapDistance | ( | ) |
Snap distance in meters up to which edges are linked to neighbor spaces.
The default snap distance is 0.001 (1mm).
NavigationSpaceType Dragengine.Scenery.NavigationSpace.getType | ( | ) |
Space type.
Vector Dragengine.Scenery.NavigationSpace.getVertexAt | ( | int | index | ) |
Vertex at index.
int Dragengine.Scenery.NavigationSpace.getVertexCount | ( | ) |
Number of vertices..
int Dragengine.Scenery.NavigationSpace.getWallCount | ( | ) |
Number of walls.
int Dragengine.Scenery.NavigationSpace.getWallFace | ( | int | wall | ) |
Index of face for wall at index.
int Dragengine.Scenery.NavigationSpace.getWallType | ( | int | wall | ) |
Type number to use for crossing wall at index.
void Dragengine.Scenery.NavigationSpace.layoutChanged | ( | ) |
Notifies the peers that the layout of the navigation space changed.
This has to be called after changes made to vertices or faces
NavigationSpace Dragengine.Scenery.NavigationSpace.new | ( | ) |
Create navigation space.
NavigationSpace Dragengine.Scenery.NavigationSpace.new | ( | NavigationSpace | navigationSpace | ) |
Create copy of navigation space.
void Dragengine.Scenery.NavigationSpace.setBlockerShapeList | ( | ShapeList | shapeList | ) |
Set blocker shape list.
void Dragengine.Scenery.NavigationSpace.setBlockingPriority | ( | int | priority | ) |
Set blocking priority.
Navigation meshes is blocked by all blockers with an equal or larger blocking priority. If a blocker shape exists it blocks all navigation meshes with equal or less blocking priority.
void Dragengine.Scenery.NavigationSpace.setCornerAt | ( | int | corner, |
int | vertex, | ||
int | type | ||
) |
Set parameters of corner at index.
void Dragengine.Scenery.NavigationSpace.setCornerCount | ( | int | count | ) |
Set number of corners.
void Dragengine.Scenery.NavigationSpace.setEdgeAt | ( | int | edge, |
int | vertex1, | ||
int | vertex2, | ||
int | type1, | ||
int | type2 | ||
) |
Set parameters for edge at index.
void Dragengine.Scenery.NavigationSpace.setEdgeCount | ( | int | count | ) |
Set number of edges.
void Dragengine.Scenery.NavigationSpace.setFaceAt | ( | int | face, |
int | cornerCount, | ||
int | type | ||
) |
Set parameters of face at index.
void Dragengine.Scenery.NavigationSpace.setFaceCount | ( | int | count | ) |
Set number of faces.
void Dragengine.Scenery.NavigationSpace.setLayer | ( | int | layer | ) |
Set layer number.
void Dragengine.Scenery.NavigationSpace.setOrientation | ( | Quaternion | orientation | ) |
Set orientation.
void Dragengine.Scenery.NavigationSpace.setPosition | ( | DVector | position | ) |
Set position.
void Dragengine.Scenery.NavigationSpace.setRoomAt | ( | int | room, |
int | frontWallCount, | ||
int | backWallCount, | ||
int | type | ||
) |
Set parameters for room at index.
void Dragengine.Scenery.NavigationSpace.setRoomCount | ( | int | count | ) |
Set number of rooms.
void Dragengine.Scenery.NavigationSpace.setSnapAngle | ( | float | angle | ) |
Set snap angle in degrees up to which edges are linked to neighbor spaces.
The default snap angle is 180°.
void Dragengine.Scenery.NavigationSpace.setSnapDistance | ( | float | distance | ) |
Set snap distance in meters up to which edges are linked to neighbor spaces.
The default snap distance is 0.001 (1mm).
void Dragengine.Scenery.NavigationSpace.setType | ( | NavigationSpaceType | type | ) |
Set space type.
void Dragengine.Scenery.NavigationSpace.setVertexAt | ( | int | index, |
Vector | position | ||
) |
Set vertex at index.
void Dragengine.Scenery.NavigationSpace.setVertexCount | ( | int | count | ) |
Set number of vertices.
void Dragengine.Scenery.NavigationSpace.setWallAt | ( | int | wall, |
int | face, | ||
int | type | ||
) |
Set parameters for wall at index.
void Dragengine.Scenery.NavigationSpace.setWallCount | ( | int | count | ) |
Set number of walls.