CodeBase - 3D Pathfinding

Return to the CodeBase listing

Category: Libraries

Version: 1.0

1
0

Information

Uploaded: 17th Aug 2016 14:39

Modified: 17th Aug 2016 14:39

Author:  JohnStabler

Summary

A set of simple functions to add pathinfinding to your 3D levels.

Full Description

Load your level, add waypoint data and then tell it to calculate. It uses some maths and temporary objects & raycasting to work out which waypoints are visible to each other. Once the precalculations are done you can call the GetRoute(startWP, endWP) function at any time in your game loop to generate a path between two way points. <br /> <br /> Iterate backwards over the route array to get from the start to the finish.<br /> <br /> Check out this thread for an example: https://forum.thegamecreators.com/thread/217692

Comments

Blendman
Posted: 13th Jan 2017 07:58
Hi
Could you provide a simple example, with 3DCube to see how to use your code ?

Thanks a lot.