Esempio n. 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));
 }
Esempio n. 2
0
 public static extern ref NavMeshDataResult navmesh_data_create(IntPtr context, ref RcConfig config, IntPtr polyMeshDetail, IntPtr polyMesh, IntPtr geom, int tx, int ty, float agentHeight, float agentRadius, float agentMaxClimb);
Esempio n. 3
0
 public static extern IntPtr polymesh_detail_create(IntPtr context, ref RcConfig config, IntPtr polyMesh, IntPtr chf);
Esempio n. 4
0
 public static extern IntPtr compact_heightfield_create(IntPtr context, ref RcConfig config, IntPtr geom);
Esempio n. 5
0
 public static extern void rcConfig_calc_grid_size(ref RcConfig config, IntPtr geom);
Esempio n. 6
0
        public PolyMeshDetail CreatePolyMeshDetail(RcConfig config, PolyMesh polyMesh, CompactHeightfield chf)
        {
            var handle = RecastLibrary.polymesh_detail_create(_context.DangerousGetHandle(), ref config, polyMesh.DangerousGetHandle(), chf.DangerousGetHandle());

            return(new PolyMeshDetail(handle));
        }
Esempio n. 7
0
        public PolyMesh CreatePolyMesh(RcConfig config, CompactHeightfield chf)
        {
            var handle = RecastLibrary.polymesh_create(_context.DangerousGetHandle(), ref config, chf.DangerousGetHandle());

            return(new PolyMesh(handle));
        }
Esempio n. 8
0
        public CompactHeightfield CreateCompactHeightfield(RcConfig config, InputGeom geom)
        {
            var handle = RecastLibrary.compact_heightfield_create(_context.DangerousGetHandle(), ref config, geom.DangerousGetHandle());

            return(new CompactHeightfield(handle));
        }
Esempio n. 9
0
 public void CalcGridSize(ref RcConfig config, InputGeom geom)
 {
     RecastLibrary.rcConfig_calc_grid_size(ref config, geom.DangerousGetHandle());
 }