Replies: 2 comments 4 replies
-
I will try extending: Update: Exposing // packages/recast-navigation-wasm/recastnavigation/DetourCrowd/Source/DetourCrowd.cpp
dtCrowdAgentAnimation* dtCrowd::getAgentAnimation(const int idx)
{
if (idx < 0 || idx >= m_maxAgents)
return 0;
return &m_agentAnims[idx];
} We can follow DEVELOPMENT.md, change // locally by changing tsconfig.json in my repo
"paths": {
"@recast-navigation/core": ["../recast-navigation-js/packages/recast-navigation-core"],
"@recast-navigation/generators": ["../recast-navigation-js/packages/recast-navigation-generators"],
"@recast-navigation/three": ["../recast-navigation-js/packages/recast-navigation-three"],
"@recast-navigation/wasm": ["../recast-navigation-js/packages/recast-navigation-wasm"]
},
// in production by re-publishing scoped modules e.g.
"@recast-navigation/core": "npm:@rob-myers/[email protected]",
"@recast-navigation/generators": "npm:@rob-myers/[email protected]",
"@recast-navigation/three": "npm:@rob-myers/[email protected]",
"@recast-navigation/wasm": "npm:@rob-myers/[email protected]", I'd be interested if there's another way @isaac-mason ? I'm guessing you don't want to extend the underlying repo, even if offMeshConnections are a bit of a mess. Btw, it seems pretty easy to "smooth" the offMeshConnection traversal. |
Beta Was this translation helpful? Give feedback.
-
Hey @rob-myers! If you have the appetite to do it, it would be most ideal to upstream improvements to the recastnavigation repo. Although afaik Mikko is not actively involved anymore, there are other contributors maintaining the repo that could help merge improvements to off mesh connections. Otherwise linking recast-navigation-js to your own fork for your own usage is certainly a way forward. I'd probably prefer not to modify the fork that the recast-navigation-js repo uses though to keep maintenance low though. |
Beta Was this translation helpful? Give feedback.
-
Hey, I would like to cancel an offMeshConnection traversal.
I can detect if one has started via
agent.state() === 2
, but I cannot currently prevent an agent from following it.Even if I remove the agent from the crowd and re-add it, the connection is followed.
Can we somehow expose
dtCrowdAgentAnimation
so I can set active to be false?Beta Was this translation helpful? Give feedback.
All reactions