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;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
public void rasterize(Heightfield hf, Telemetry telemetry)
|
||||
public override void rasterize(Heightfield hf, Telemetry telemetry)
|
||||
{
|
||||
RecastFilledVolumeRasterization.rasterizeBox(
|
||||
hf, center, halfEdges, area, (int)Math.Floor(flagMergeThreshold / hf.ch), telemetry);
|
||||
|
|
|
@ -36,7 +36,7 @@ namespace DotRecast.Detour.Dynamic.Colliders
|
|||
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),
|
||||
telemetry);
|
||||
|
|
|
@ -40,7 +40,7 @@ namespace DotRecast.Detour.Dynamic.Colliders
|
|||
this.triangles = triangles;
|
||||
}
|
||||
|
||||
public void rasterize(Heightfield hf, Telemetry telemetry)
|
||||
public override void rasterize(Heightfield hf, Telemetry telemetry)
|
||||
{
|
||||
RecastFilledVolumeRasterization.rasterizeConvex(hf, vertices, triangles, area,
|
||||
(int)Math.Floor(flagMergeThreshold / hf.ch), telemetry);
|
||||
|
|
|
@ -36,7 +36,7 @@ namespace DotRecast.Detour.Dynamic.Colliders
|
|||
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),
|
||||
telemetry);
|
||||
|
|
|
@ -34,7 +34,7 @@ namespace DotRecast.Detour.Dynamic.Colliders
|
|||
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),
|
||||
telemetry);
|
||||
|
|
|
@ -56,7 +56,7 @@ namespace DotRecast.Detour.Dynamic.Colliders
|
|||
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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue