forked from bit/DotRecastNetSim
bugfix - dynamic tile rasterize
This commit is contained in:
parent
f0d255a6c7
commit
b6356afd1b
|
@ -38,9 +38,6 @@ namespace DotRecast.Detour.Dynamic.Colliders
|
||||||
return _bounds;
|
return _bounds;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void rasterize(Heightfield hf, Telemetry telemetry)
|
public abstract void rasterize(Heightfield hf, Telemetry telemetry);
|
||||||
{
|
|
||||||
///?
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -60,7 +60,7 @@ namespace DotRecast.Detour.Dynamic.Colliders
|
||||||
return bounds;
|
return bounds;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void rasterize(Heightfield hf, Telemetry telemetry)
|
public override void rasterize(Heightfield hf, Telemetry telemetry)
|
||||||
{
|
{
|
||||||
RecastFilledVolumeRasterization.rasterizeBox(
|
RecastFilledVolumeRasterization.rasterizeBox(
|
||||||
hf, center, halfEdges, area, (int)Math.Floor(flagMergeThreshold / hf.ch), telemetry);
|
hf, center, halfEdges, area, (int)Math.Floor(flagMergeThreshold / hf.ch), telemetry);
|
||||||
|
|
|
@ -36,7 +36,7 @@ namespace DotRecast.Detour.Dynamic.Colliders
|
||||||
this.radius = radius;
|
this.radius = radius;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void rasterize(Heightfield hf, Telemetry telemetry)
|
public override void rasterize(Heightfield hf, Telemetry telemetry)
|
||||||
{
|
{
|
||||||
RecastFilledVolumeRasterization.rasterizeCapsule(hf, start, end, radius, area, (int)Math.Floor(flagMergeThreshold / hf.ch),
|
RecastFilledVolumeRasterization.rasterizeCapsule(hf, start, end, radius, area, (int)Math.Floor(flagMergeThreshold / hf.ch),
|
||||||
telemetry);
|
telemetry);
|
||||||
|
|
|
@ -40,7 +40,7 @@ namespace DotRecast.Detour.Dynamic.Colliders
|
||||||
this.triangles = triangles;
|
this.triangles = triangles;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void rasterize(Heightfield hf, Telemetry telemetry)
|
public override void rasterize(Heightfield hf, Telemetry telemetry)
|
||||||
{
|
{
|
||||||
RecastFilledVolumeRasterization.rasterizeConvex(hf, vertices, triangles, area,
|
RecastFilledVolumeRasterization.rasterizeConvex(hf, vertices, triangles, area,
|
||||||
(int)Math.Floor(flagMergeThreshold / hf.ch), telemetry);
|
(int)Math.Floor(flagMergeThreshold / hf.ch), telemetry);
|
||||||
|
|
|
@ -36,7 +36,7 @@ namespace DotRecast.Detour.Dynamic.Colliders
|
||||||
this.radius = radius;
|
this.radius = radius;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void rasterize(Heightfield hf, Telemetry telemetry)
|
public override void rasterize(Heightfield hf, Telemetry telemetry)
|
||||||
{
|
{
|
||||||
RecastFilledVolumeRasterization.rasterizeCylinder(hf, start, end, radius, area, (int)Math.Floor(flagMergeThreshold / hf.ch),
|
RecastFilledVolumeRasterization.rasterizeCylinder(hf, start, end, radius, area, (int)Math.Floor(flagMergeThreshold / hf.ch),
|
||||||
telemetry);
|
telemetry);
|
||||||
|
|
|
@ -34,7 +34,7 @@ namespace DotRecast.Detour.Dynamic.Colliders
|
||||||
this.radius = radius;
|
this.radius = radius;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void rasterize(Heightfield hf, Telemetry telemetry)
|
public override void rasterize(Heightfield hf, Telemetry telemetry)
|
||||||
{
|
{
|
||||||
RecastFilledVolumeRasterization.rasterizeSphere(hf, center, radius, area, (int)Math.Floor(flagMergeThreshold / hf.ch),
|
RecastFilledVolumeRasterization.rasterizeSphere(hf, center, radius, area, (int)Math.Floor(flagMergeThreshold / hf.ch),
|
||||||
telemetry);
|
telemetry);
|
||||||
|
|
|
@ -56,7 +56,7 @@ namespace DotRecast.Detour.Dynamic.Colliders
|
||||||
return bounds;
|
return bounds;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void rasterize(Heightfield hf, Telemetry telemetry)
|
public override void rasterize(Heightfield hf, Telemetry telemetry)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < triangles.Length; i += 3)
|
for (int i = 0; i < triangles.Length; i += 3)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue