|
Drag[en]gine Script Module DragonScript 1.32.1
|
Navigation space. More...
Public Member Functions | |
Constructors | |
| NavigationSpace | new () |
| Create navigation space. | |
| NavigationSpace | new (NavigationSpace navigationSpace) |
| Create copy of navigation space. | |
Management | |
| DVector | getPosition () |
| Position. | |
| void | setPosition (DVector position) |
| Set position. | |
| Quaternion | getOrientation () |
| Orientation. | |
| void | setOrientation (Quaternion orientation) |
| Set orientation. | |
| int | getLayer () |
| Layer number. | |
| void | setLayer (int layer) |
| Set layer number. | |
| NavigationSpaceType | getType () |
| Space type. | |
| void | setType (NavigationSpaceType type) |
| Set space type. | |
| int | getBlockingPriority () |
| Blocking priority. | |
| void | setBlockingPriority (int priority) |
| Set blocking priority. | |
| World | getParentWorld () |
| Parent world or null if not added to a world. | |
| float | getSnapDistance () |
| Snap distance in meters up to which edges are linked to neighbor spaces. | |
| void | setSnapDistance (float distance) |
| Set snap distance in meters up to which edges are linked to neighbor spaces. | |
| float | getSnapAngle () |
| Snap angle in degrees up to which edges are linked to neighbor spaces. | |
| void | setSnapAngle (float angle) |
| Set snap angle in degrees up to which edges are linked to neighbor spaces. | |
| void | layoutChanged () |
| Notifies the peers that the layout of the navigation space changed. | |
| ShapeList | getBlockerShapeList () |
| Blocker shape list. | |
| void | setBlockerShapeList (ShapeList shapeList) |
| Set blocker shape list. | |
Vertices (grid, space, volume) | |
| int | getVertexCount () |
| Number of vertices.. | |
| void | setVertexCount (int count) |
| Set number of vertices. | |
| Vector | getVertexAt (int index) |
| Vertex at index. | |
| void | setVertexAt (int index, Vector position) |
| Set vertex at index. | |
Edges (grid, space, volume) | |
| int | getEdgeCount () |
| Number of edges. | |
| void | setEdgeCount (int count) |
| Set number of edges. | |
| int | getEdgeVertex1 (int edge) |
| Index of the first vertex of edge at index. | |
| int | getEdgeVertex2 (int edge) |
| Index of the second vertex of edge at index. | |
| int | getEdgeType1 (int edge) |
| Type number to use for the edge at position crossing the edge from the first to the second vertex. | |
| int | getEdgeType2 (int edge) |
| Type number to use for the edge at position crossing the edge from the second to the first vertex. | |
| void | setEdgeAt (int edge, int vertex1, int vertex2, int type1, int type2) |
| Set parameters for edge at index. | |
Corners (space, volume) | |
| int | getCornerCount () |
| Number of corners. | |
| void | setCornerCount (int count) |
| Set number of corners. | |
| int | getCornerVertex (int corner) |
| Index of the vertex for corner at index. | |
| int | getCornerType (int corner) |
| Type number for corner at position used when crossing the edge from the parent face to the other face. | |
| void | setCornerAt (int corner, int vertex, int type) |
| Set parameters of corner at index. | |
Faces (space, volume) | |
| int | getFaceCount () |
| Number of faces. | |
| void | setFaceCount (int count) |
| Set number of faces. | |
| int | getFaceCornerCount (int face) |
| Number of corners for face at index. | |
| int | getFaceType (int face) |
| Type number to use while crossing face at index. | |
| void | setFaceAt (int face, int cornerCount, int type) |
| Set parameters of face at index. | |
Walls (volume) | |
| int | getWallCount () |
| Number of walls. | |
| void | setWallCount (int count) |
| Set number of walls. | |
| int | getWallFace (int wall) |
| Index of face for wall at index. | |
| int | getWallType (int wall) |
| Type number to use for crossing wall at index. | |
| void | setWallAt (int wall, int face, int type) |
| Set parameters for wall at index. | |
Rooms (volume) | |
| int | getRoomCount () |
| Number of rooms. | |
| void | setRoomCount (int count) |
| Set number of rooms. | |
| int | getRoomFrontWallCount (int room) |
| Number of front facing walls in room at index. | |
| int | getRoomBackWallCount (int room) |
| Number of back facing walls in room at index. | |
| int | getRoomType () |
| Type number to use for crossing room at index. | |
| void | setRoomAt (int room, int frontWallCount, int backWallCount, int type) |
| Set parameters for room at index. | |
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.
| World Dragengine.Scenery.NavigationSpace.getParentWorld | ( | ) |
Parent world or null if not added to a world.
| 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.