Package org.recast4j.recast
Class RecastConfig
java.lang.Object
org.recast4j.recast.RecastConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intThe size of the non-navigable border around the heightfield.final booleanSet to false to disable building detailed meshfinal floatThe y-axis cell size to use for fields.final floatThe xz-plane cell size to use for fields.final floatSets the sampling distance to use when generating the detail mesh.final floatThe maximum distance the detail mesh surface should deviate from heightfield data.final booleanfinal booleanfinal booleanfinal intThe maximum allowed length for contour edges along the border of the mesh.final floatfinal floatThe maximum distance a simplfied contour's border edges should deviate the original raw contour.final intThe maximum number of vertices allowed for polygons generated during the contour to polygon conversion process.final intAny regions with a span count smaller than this value will, if possible, be merged with larger regions.final floatfinal intThe minimum number of cells allowed to form isolated island areas.final floatSet of original settings passed in world unitsfinal intThe width/depth size of tile's on the xz-plane.final intfinal booleanfinal AreaModificationfinal intMaximum ledge height that is considered to still be traversable.final floatfinal intMinimum floor to 'ceiling' height that will still allow the floor area to be considered walkable.final floatfinal intThe distance to erode/shrink the walkable area of the heightfield away from obstructions.final floatfinal floatThe maximum slope that is considered walkable. -
Constructor Summary
ConstructorsConstructorDescriptionRecastConfig(boolean useTiles, int tileSizeX, int tileSizeZ, int borderSize, RecastConstants.PartitionType partitionType, float cellSize, float cellHeight, float agentMaxSlope, boolean filterLowHangingObstacles, boolean filterLedgeSpans, boolean filterWalkableLowHeightSpans, float agentHeight, float agentRadius, float agentMaxClimb, float minRegionArea, float mergeRegionArea, float edgeMaxLen, float edgeMaxError, int vertsPerPoly, boolean buildMeshDetail, float detailSampleDist, float detailSampleMaxError, AreaModification walkableAreaMod) RecastConfig(RecastConstants.PartitionType partitionType, float cellSize, float cellHeight, float agentMaxSlope, boolean filterLowHangingObstacles, boolean filterLedgeSpans, boolean filterWalkableLowHeightSpans, float agentHeight, float agentRadius, float agentMaxClimb, int regionMinSize, int regionMergeSize, float edgeMaxLen, float edgeMaxError, int vertsPerPoly, float detailSampleDist, float detailSampleMaxError, AreaModification walkableAreaMod, boolean buildMeshDetail) Non-tiled build configurationRecastConfig(RecastConstants.PartitionType partitionType, float cellSize, float cellHeight, float agentHeight, float agentRadius, float agentMaxClimb, float agentMaxSlope, int regionMinSize, int regionMergeSize, float edgeMaxLen, float edgeMaxError, int vertsPerPoly, float detailSampleDist, float detailSampleMaxError, AreaModification walkableAreaMod) Non-tiled build configuration -
Method Summary
-
Field Details
-
partitionType
-
useTiles
public final boolean useTiles -
tileSizeX
public final int tileSizeXThe width/depth size of tile's on the xz-plane. [Limit: >= 0] [Units: vx] -
tileSizeZ
public final int tileSizeZ -
cs
public final float csThe xz-plane cell size to use for fields. [Limit: > 0] [Units: wu] -
ch
public final float chThe y-axis cell size to use for fields. [Limit: > 0] [Units: wu] -
walkableSlopeAngle
public final float walkableSlopeAngleThe maximum slope that is considered walkable. [Limits: 0 <= value < 90] [Units: Degrees] -
walkableHeight
public final int walkableHeightMinimum floor to 'ceiling' height that will still allow the floor area to be considered walkable. [Limit: >= 3] [Units: vx] -
walkableClimb
public final int walkableClimbMaximum ledge height that is considered to still be traversable. [Limit: >=0] [Units: vx] -
walkableRadius
public final int walkableRadiusThe distance to erode/shrink the walkable area of the heightfield away from obstructions. [Limit: >=0] [Units: vx] -
maxEdgeLen
public final int maxEdgeLenThe maximum allowed length for contour edges along the border of the mesh. [Limit: >=0] [Units: vx] -
maxSimplificationError
public final float maxSimplificationErrorThe maximum distance a simplfied contour's border edges should deviate the original raw contour. [Limit: >=0] [Units: vx] -
minRegionArea
public final int minRegionAreaThe minimum number of cells allowed to form isolated island areas. [Limit: >=0] [Units: vx] -
mergeRegionArea
public final int mergeRegionAreaAny regions with a span count smaller than this value will, if possible, be merged with larger regions. [Limit: >=0] [Units: vx] -
maxVertsPerPoly
public final int maxVertsPerPolyThe maximum number of vertices allowed for polygons generated during the contour to polygon conversion process. [Limit: >= 3] -
detailSampleDist
public final float detailSampleDistSets the sampling distance to use when generating the detail mesh. (For height detail only.) [Limits: 0 or >= 0.9] [Units: wu] -
detailSampleMaxError
public final float detailSampleMaxErrorThe maximum distance the detail mesh surface should deviate from heightfield data. (For height detail only.) [Limit: >=0] [Units: wu] -
walkableAreaMod
-
filterLowHangingObstacles
public final boolean filterLowHangingObstacles -
filterLedgeSpans
public final boolean filterLedgeSpans -
filterWalkableLowHeightSpans
public final boolean filterWalkableLowHeightSpans -
buildMeshDetail
public final boolean buildMeshDetailSet to false to disable building detailed mesh -
borderSize
public final int borderSizeThe size of the non-navigable border around the heightfield. [Limit: >=0] [Units: vx] -
minRegionAreaWorld
public final float minRegionAreaWorldSet of original settings passed in world units -
mergeRegionAreaWorld
public final float mergeRegionAreaWorld -
walkableHeightWorld
public final float walkableHeightWorld -
walkableClimbWorld
public final float walkableClimbWorld -
walkableRadiusWorld
public final float walkableRadiusWorld -
maxEdgeLenWorld
public final float maxEdgeLenWorld
-
-
Constructor Details
-
RecastConfig
public RecastConfig(RecastConstants.PartitionType partitionType, float cellSize, float cellHeight, float agentHeight, float agentRadius, float agentMaxClimb, float agentMaxSlope, int regionMinSize, int regionMergeSize, float edgeMaxLen, float edgeMaxError, int vertsPerPoly, float detailSampleDist, float detailSampleMaxError, AreaModification walkableAreaMod) Non-tiled build configuration -
RecastConfig
public RecastConfig(RecastConstants.PartitionType partitionType, float cellSize, float cellHeight, float agentMaxSlope, boolean filterLowHangingObstacles, boolean filterLedgeSpans, boolean filterWalkableLowHeightSpans, float agentHeight, float agentRadius, float agentMaxClimb, int regionMinSize, int regionMergeSize, float edgeMaxLen, float edgeMaxError, int vertsPerPoly, float detailSampleDist, float detailSampleMaxError, AreaModification walkableAreaMod, boolean buildMeshDetail) Non-tiled build configuration -
RecastConfig
public RecastConfig(boolean useTiles, int tileSizeX, int tileSizeZ, int borderSize, RecastConstants.PartitionType partitionType, float cellSize, float cellHeight, float agentMaxSlope, boolean filterLowHangingObstacles, boolean filterLedgeSpans, boolean filterWalkableLowHeightSpans, float agentHeight, float agentRadius, float agentMaxClimb, float minRegionArea, float mergeRegionArea, float edgeMaxLen, float edgeMaxError, int vertsPerPoly, boolean buildMeshDetail, float detailSampleDist, float detailSampleMaxError, AreaModification walkableAreaMod)
-
-
Method Details
-
calcBorder
public static int calcBorder(float agentRadius, float cs)
-