cz.cuni.amis.pogamut.ut2004.agent.navigation.navmesh
Class LevelGeometry
java.lang.Object
cz.cuni.amis.pogamut.ut2004.agent.navigation.navmesh.LevelGeometry
- All Implemented Interfaces:
- Serializable
public class LevelGeometry
- extends Object
- implements Serializable
Class containing complete data with the geometry of the environment
It is useful for steering
It is part of NavMesh class
- Author:
- Jakub Tomek
- See Also:
- Serialized Form
Constructor Summary |
LevelGeometry(String mapName)
Constructor creates the object from a file defined by map name and path which is in constants |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
verts
public ArrayList<double[]> verts
triangles
public ArrayList<int[]> triangles
leafCount
public int leafCount
minX
public double minX
maxX
public double maxX
minY
public double minY
maxY
public double maxY
minZ
public double minZ
maxZ
public double maxZ
random
public Random random
LevelGeometry
public LevelGeometry(String mapName)
throws FileNotFoundException,
IOException,
Exception
- Constructor creates the object from a file defined by map name and path which is in constants
- Parameters:
mapName
-
- Throws:
FileNotFoundException
IOException
Exception
draw
public void draw(UT2004Server server,
Location color)
drawOneTriangle
public void drawOneTriangle(UT2004Server server,
int tId,
Location color)
getAutoTraceRayMessage
public AutoTraceRay getAutoTraceRayMessage(Self self,
BSPRayInfoContainer rayInfo)
- The most important method on this class.
It computes the information about collision of the given ray and this geometry
- Parameters:
self
- rayInfo
-
- Returns:
Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.