mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +00:00
don't use MarkerObjectTypes for navmesh generation
do use a minium radius for clicking on a link to select it in the tooling
This commit is contained in:
parent
f2a5b06803
commit
4481bdc726
1 changed files with 3 additions and 3 deletions
|
|
@ -454,8 +454,8 @@ S32 NavMesh::getLink(const Point3F &pos)
|
||||||
{
|
{
|
||||||
if(mDeleteLinks[i])
|
if(mDeleteLinks[i])
|
||||||
continue;
|
continue;
|
||||||
SphereF start(getLinkStart(i), mLinkRads[i]);
|
SphereF start(getLinkStart(i), mMax(mLinkRads[i],0.25f));
|
||||||
SphereF end(getLinkEnd(i), mLinkRads[i]);
|
SphereF end(getLinkEnd(i), mMax(mLinkRads[i], 0.25f));
|
||||||
if(start.isContained(pos) || end.isContained(pos))
|
if(start.isContained(pos) || end.isContained(pos))
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
@ -653,7 +653,7 @@ DefineEngineMethod(NavMesh, deleteLinks, void, (),,
|
||||||
static void buildCallback(SceneObject* object, void* key)
|
static void buildCallback(SceneObject* object, void* key)
|
||||||
{
|
{
|
||||||
SceneContainer::CallbackInfo* info = reinterpret_cast<SceneContainer::CallbackInfo*>(key);
|
SceneContainer::CallbackInfo* info = reinterpret_cast<SceneContainer::CallbackInfo*>(key);
|
||||||
if (!object->mPathfindingIgnore)
|
if (!object->mPathfindingIgnore && (object->getTypeMask() & MarkerObjectType) == 0)
|
||||||
object->buildPolyList(info->context, info->polyList, info->boundingBox, info->boundingSphere);
|
object->buildPolyList(info->context, info->polyList, info->boundingBox, info->boundingSphere);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue