Skip to content

Commit

Permalink
Fixed compile error in NavMeshSurface
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsakharov committed Nov 25, 2024
1 parent 20a7db6 commit 15a1ff6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Prowl.Runtime/Components/Navmesh/NavMeshSurface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -424,20 +424,20 @@ public void Append(Collider collider)
Mesh mesh = null;
if (collider is SphereCollider sph)
{
mesh = Mesh.CreateSphere(sph.radius, 8, 8);
mesh = Mesh.CreateSphere(sph.Radius, 8, 8);
}
else if (collider is BoxCollider box)
{
mesh = Mesh.CreateCube(box.size);
mesh = Mesh.CreateCube(box.Size);
}
else if (collider is CylinderCollider cylinder)
{
mesh = Mesh.CreateCylinder(cylinder.radius, cylinder.height, 8);
mesh = Mesh.CreateCylinder(cylinder.Radius, cylinder.Height, 8);
}
else if (collider is CapsuleCollider capsule)
{
#warning TODO: We need to implement a capsule mesh generator - cylinder sorta works for now
mesh = Mesh.CreateCylinder(capsule.radius, capsule.height, 8);
mesh = Mesh.CreateCylinder(capsule.Radius, capsule.Height, 8);
}
//else if (collider is TriangleCollider triangle)
//{
Expand Down

0 comments on commit 15a1ff6

Please sign in to comment.