Jump to content

Search the Community

Showing results for tags 'pathroute'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to UNIGINE Forums
    • News & Announcements
    • Getting started
  • Development
    • Content Creation
    • World Design
    • Rendering
    • Animation
    • Physics, Navigation and Path Finding
    • UI Systems
    • Sound & Video
    • Editor
    • C++ Programming
    • C# Programming
    • Networking
    • Sim IG (Image Generator)
    • VR Discussions
    • General
  • Improving UNIGINE
    • Documentation
    • Feedback for UNIGINE team
    • Bug Reports
    • Unigine SDK Beta feedback
  • Community
    • Add-on Store (https://store.unigine.com/)
    • Showcase
    • Collaboration
    • Tools, Plugins, Materials & Tutorials
    • General Discussions
  • Legacy
    • UnigineScript

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Found 4 results

  1. I think about moving our project to Unigine but there is something i am worried about. From what i understand making NPC's respect eachothers routs and each others collisions is immpossible? But that isnt even that big of a problem for and RTS. What worries me is placing new buildings on the map. Do i have to recalculate the whole navmesh every time i place anything in the world and how expensive might it be for a game? Maby it will limit the map size? is there any other way of doing it?
  2. Hi, Is there any condition under which the points for a 2D PathRoute are generated outside its navigation mesh volume? Please refer the attached pics. As can be seen, the route is being created below the tree's PathObstacle, rather than around it, making the point not reachable for AI. This is something that I'm observing for the first time. I had an understanding that route points are always generated on the nav mesh's bottom surface level (with added offset). In this case, nav mesh z = -0.5, height = 10, route offset = +0.5 ( making sure the tree's obstacle touches the navmesh bottom correctly. Any helpful observation is appreciated. Thanks.
  3. Hello, I'm having a little problem with implementing AI which looks like a beginner issue but I'm not able to figure it out. I'm trying to create an animated agent AI that moves towards another static agent(ally). Both these agents, a ground plane and a Nav sector of size 1024 * 1024 * 9 have been created in the world. I've created a custom AI class with a Node type member variable initialized using findNode(). Once that is successful I'm going into route creation. This is what is done : Init() { route = new PathRoute(2.0f); route.setMaxAngle(0.5f); route.create2D(position, ally.position); } Update() { float ifps = engine.game.getIFps(); Vec3 dir = route.getPoint(1) - route.getPoint(0); if(length(dir) > EPSILON) { orientation = lerp(orientation, quat(setTo(Vec3_zero, dir, Vec3(0.0f, 0.0f, 1.0f))), iFps * 8.0f); position += self.getWorldDirection() * iFps * 16.0f; self.setWorldDirection(translate(position) * orientation); } route.renderVisualizer(vec4_one); route.create2D(position, ally.position); } Problem is with getPoint() call, the route is not being created and I'm getting route.getNumPoints() as 0. ERROR : "PathRoute::getPointNum(): bad point number". Have I missed something? Thanks in advance.
  4. Hi, I'm trying to create a route2D and app crashes. Reproduced on the world samples/path/mesh00, just unzip in "samples/path/" and uncomment lines. Call stack application attached. Used Unigine source SDK-2012-09-07.paths.zip
×
×
  • Create New...