Пример #1
0
 public NavMeshDataResult CreateNavMeshData(RcConfig config, PolyMeshDetail polyMeshDetail, PolyMesh polyMesh,
                                            InputGeom geom, int tx, int ty, float agentHeight, float agentRadius, float agentMaxClimb)
 {
     return(RecastLibrary.navmesh_data_create(
                _context.DangerousGetHandle(),
                ref config,
                polyMeshDetail.DangerousGetHandle(),
                polyMesh.DangerousGetHandle(),
                geom.DangerousGetHandle(),
                tx,
                ty,
                agentHeight,
                agentRadius,
                agentMaxClimb));
 }
Пример #2
0
        public CompactHeightfield CreateCompactHeightfield(RcConfig config, InputGeom geom)
        {
            var handle = RecastLibrary.compact_heightfield_create(_context.DangerousGetHandle(), ref config, geom.DangerousGetHandle());

            return(new CompactHeightfield(handle));
        }
Пример #3
0
 public void CalcGridSize(ref RcConfig config, InputGeom geom)
 {
     RecastLibrary.rcConfig_calc_grid_size(ref config, geom.DangerousGetHandle());
 }