Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Scenery.NavigationSpace Class Reference

Navigation space. More...

Inheritance diagram for Dragengine.Scenery.NavigationSpace:

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.

Detailed Description

Navigation space.

This is a native class.

Member Function Documentation

◆ getBlockerShapeList()

ShapeList Dragengine.Scenery.NavigationSpace.getBlockerShapeList ( )

Blocker shape list.

Referenced by setVertexAt().

◆ getBlockingPriority()

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.

References getType(), and setType().

Referenced by getParentWorld().

◆ getCornerCount()

int Dragengine.Scenery.NavigationSpace.getCornerCount ( )

Number of corners.

References setVertexAt().

Referenced by getWallFace().

◆ getCornerType()

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.

References getEdgeCount().

Referenced by getRoomCount().

◆ getCornerVertex()

int Dragengine.Scenery.NavigationSpace.getCornerVertex ( int corner)

Index of the vertex for corner at index.

Referenced by setWallAt().

◆ getEdgeCount()

int Dragengine.Scenery.NavigationSpace.getEdgeCount ( )

Number of edges.

Referenced by getCornerType().

◆ getEdgeType1()

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.

References getVertexCount().

Referenced by getFaceCornerCount().

◆ getEdgeType2()

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.

References setVertexCount().

Referenced by setFaceAt().

◆ getEdgeVertex1()

int Dragengine.Scenery.NavigationSpace.getEdgeVertex1 ( int edge)

Index of the first vertex of edge at index.

Referenced by setCornerAt().

◆ getEdgeVertex2()

int Dragengine.Scenery.NavigationSpace.getEdgeVertex2 ( int edge)

Index of the second vertex of edge at index.

Referenced by setFaceCount().

◆ getFaceCornerCount()

int Dragengine.Scenery.NavigationSpace.getFaceCornerCount ( int face)

Number of corners for face at index.

References getEdgeType1().

Referenced by setRoomAt().

◆ getFaceCount()

int Dragengine.Scenery.NavigationSpace.getFaceCount ( )

Number of faces.

Referenced by setRoomAt().

◆ getFaceType()

int Dragengine.Scenery.NavigationSpace.getFaceType ( int face)

Type number to use while crossing face at index.

Referenced by setRoomAt().

◆ getLayer()

int Dragengine.Scenery.NavigationSpace.getLayer ( )

Layer number.

Referenced by getType().

◆ getOrientation()

Quaternion Dragengine.Scenery.NavigationSpace.getOrientation ( )

Orientation.

References setPosition().

Referenced by setOrientation().

◆ getParentWorld()

World Dragengine.Scenery.NavigationSpace.getParentWorld ( )

Parent world or null if not added to a world.

Version
1.29

References getBlockingPriority().

Referenced by setSnapDistance().

◆ getPosition()

DVector Dragengine.Scenery.NavigationSpace.getPosition ( )

Position.

References getPosition().

Referenced by getPosition().

◆ getRoomBackWallCount()

int Dragengine.Scenery.NavigationSpace.getRoomBackWallCount ( int room)

Number of back facing walls in room at index.

Referenced by setRoomAt().

◆ getRoomCount()

int Dragengine.Scenery.NavigationSpace.getRoomCount ( )

Number of rooms.

References getCornerType().

Referenced by setRoomAt().

◆ getRoomFrontWallCount()

int Dragengine.Scenery.NavigationSpace.getRoomFrontWallCount ( int room)

Number of front facing walls in room at index.

References setCornerAt().

Referenced by setRoomAt().

◆ getRoomType()

int Dragengine.Scenery.NavigationSpace.getRoomType ( )

Type number to use for crossing room at index.

Referenced by setRoomAt().

◆ getSnapAngle()

float Dragengine.Scenery.NavigationSpace.getSnapAngle ( )

Snap angle in degrees up to which edges are linked to neighbor spaces.

The default snap angle is 180°.

Referenced by setBlockerShapeList().

◆ getSnapDistance()

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).

References setBlockingPriority().

Referenced by setSnapAngle().

◆ getType()

NavigationSpaceType Dragengine.Scenery.NavigationSpace.getType ( )

Space type.

References getLayer().

Referenced by getBlockingPriority().

◆ getVertexAt()

Vector Dragengine.Scenery.NavigationSpace.getVertexAt ( int index)

Vertex at index.

Referenced by setEdgeAt().

◆ getVertexCount()

int Dragengine.Scenery.NavigationSpace.getVertexCount ( )

Number of vertices..

References setSnapAngle().

Referenced by getEdgeType1().

◆ getWallCount()

int Dragengine.Scenery.NavigationSpace.getWallCount ( )

Number of walls.

Referenced by setRoomAt().

◆ getWallFace()

int Dragengine.Scenery.NavigationSpace.getWallFace ( int wall)

Index of face for wall at index.

References getCornerCount().

Referenced by setRoomAt().

◆ getWallType()

int Dragengine.Scenery.NavigationSpace.getWallType ( int wall)

Type number to use for crossing wall at index.

Referenced by setRoomAt().

◆ layoutChanged()

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

References setSnapDistance().

Referenced by setVertexAt().

◆ new() [1/2]

NavigationSpace Dragengine.Scenery.NavigationSpace.new ( )

Create navigation space.

References new().

Referenced by new(), and new().

◆ new() [2/2]

NavigationSpace Dragengine.Scenery.NavigationSpace.new ( NavigationSpace navigationSpace)

Create copy of navigation space.

References new().

◆ setBlockerShapeList()

void Dragengine.Scenery.NavigationSpace.setBlockerShapeList ( ShapeList shapeList)

Set blocker shape list.

References getSnapAngle().

Referenced by setEdgeCount().

◆ setBlockingPriority()

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.

Referenced by getSnapDistance().

◆ setCornerAt()

void Dragengine.Scenery.NavigationSpace.setCornerAt ( int corner,
int vertex,
int type )

Set parameters of corner at index.

References getEdgeVertex1(), and setEdgeCount().

Referenced by getRoomFrontWallCount().

◆ setCornerCount()

void Dragengine.Scenery.NavigationSpace.setCornerCount ( int count)

Set number of corners.

Referenced by setWallAt().

◆ setEdgeAt()

void Dragengine.Scenery.NavigationSpace.setEdgeAt ( int edge,
int vertex1,
int vertex2,
int type1,
int type2 )

Set parameters for edge at index.

References getVertexAt().

Referenced by setFaceAt().

◆ setEdgeCount()

void Dragengine.Scenery.NavigationSpace.setEdgeCount ( int count)

Set number of edges.

References setBlockerShapeList().

Referenced by setCornerAt().

◆ setFaceAt()

void Dragengine.Scenery.NavigationSpace.setFaceAt ( int face,
int cornerCount,
int type )

Set parameters of face at index.

References getEdgeType2(), and setEdgeAt().

Referenced by setRoomAt().

◆ setFaceCount()

void Dragengine.Scenery.NavigationSpace.setFaceCount ( int count)

Set number of faces.

References getEdgeVertex2().

Referenced by setRoomAt().

◆ setLayer()

void Dragengine.Scenery.NavigationSpace.setLayer ( int layer)

Set layer number.

References setOrientation().

Referenced by setType().

◆ setOrientation()

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

Set orientation.

References getOrientation().

Referenced by setLayer().

◆ setPosition()

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

Set position.

Referenced by getOrientation().

◆ setRoomAt()

void Dragengine.Scenery.NavigationSpace.setRoomAt ( int room,
int frontWallCount,
int backWallCount,
int type )

◆ setRoomCount()

void Dragengine.Scenery.NavigationSpace.setRoomCount ( int count)

Set number of rooms.

Referenced by setRoomAt().

◆ setSnapAngle()

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°.

References getSnapDistance().

Referenced by getVertexCount().

◆ setSnapDistance()

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).

References getParentWorld().

Referenced by layoutChanged().

◆ setType()

void Dragengine.Scenery.NavigationSpace.setType ( NavigationSpaceType type)

Set space type.

References setLayer().

Referenced by getBlockingPriority().

◆ setVertexAt()

void Dragengine.Scenery.NavigationSpace.setVertexAt ( int index,
Vector position )

Set vertex at index.

References getBlockerShapeList(), and layoutChanged().

Referenced by getCornerCount().

◆ setVertexCount()

void Dragengine.Scenery.NavigationSpace.setVertexCount ( int count)

Set number of vertices.

Referenced by getEdgeType2().

◆ setWallAt()

void Dragengine.Scenery.NavigationSpace.setWallAt ( int wall,
int face,
int type )

Set parameters for wall at index.

References getCornerVertex(), and setCornerCount().

Referenced by setRoomAt().

◆ setWallCount()

void Dragengine.Scenery.NavigationSpace.setWallCount ( int count)

Set number of walls.

Referenced by setRoomAt().


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