About Store Forum Documentation Contact
Donations:
392$/mo



Post Reply 
Collection of projects
Author Message
Zervox Offline
Silver Supporter

Post: #1
Collection of projects
Collection

So I figured I would just whip out some very basic prototype of linking two points anywhere on the navmesh, suitable for ladder,elevator or teleporter.(fair warning, code is very ugly and in no way cleared for production stability, but something anyone can play with and maybe get inspired by).

I first wanted this from the Detour part of Recast navmesh library EE uses but this method is static eg it needs to rebuild the entire navmesh for each point, this one is runtime meaning you can attach this behavior to anything.

What it does:
Instead of the standard pathfinding project which just uses actionMoveTo, this one will search the world of Offmesh connectors which are connected in the object by UID, it then tries to sort out the total length of the pathfinding results and if it takes less time for the player to move through the connected nodes it will run towards that barrel(up to anyone else to implement this logic however they see fit)

Edit:
Added a crude sample of movable platforms with pathfinding(very crude and needs quite some work to be really usable)

Edit: Added a sample which generates a mesh from spline.
Edit: Added sample using the CatMulRom


Attached File(s) Image(s)
                   
(This post was last modified: 12-29-2017 11:57 AM by Zervox.)
11-16-2016 02:37 PM
Find all posts by this user Quote this message in a reply
Zervox Offline
Silver Supporter

Post: #2
RE: Collection of projects
Added a modified version of Tottel's Spline project(supporting 3D and 2D)
Added a spline generator to the project.
Updated the project again now having adapted the CatMulRom to generate the mesh
11-19-2016 08:24 PM
Find all posts by this user Quote this message in a reply
Tottel Offline
Member

Post: #3
RE: Collection of projects
That's very cool!

I also had a 3D version of the spline generation, but it was so similar to the 2D one (and 2D is so much easier to place points and visualize) that I decided to not include it.

I don't have the awesome mesh generation though, that's very nice! smile
11-22-2016 02:57 PM
Find all posts by this user Quote this message in a reply
ronghester Offline
Bronze Supporter

Post: #4
RE: Collection of projects
(11-19-2016 08:24 PM)Zervox Wrote:  Added a modified version of Tottel's Spline project(supporting 3D and 2D)
Added a spline generator to the project.
Updated the project again now having adapted the CatMulRom to generate the mesh

Hi Zervox,

I am trying to use the CatMulRom implementation you had created in this project, and so far its working fine for me. Could you let me know how to increase the width of the curve?

Thanks

P.S. Your project link is dead actually fortunately i had a saved copy smile
12-29-2017 09:34 AM
Find all posts by this user Quote this message in a reply
Zervox Offline
Silver Supporter

Post: #5
RE: Collection of projects
You mean the spline width? if so you scale the normalized cross vectors
cro1.x=cro1.x*2;
cro1.z=cro1.z*2;
cro2.x=cro2.x*2;
cro2.z=cro2.z*2;
Updated the link.
12-29-2017 12:23 PM
Find all posts by this user Quote this message in a reply
ronghester Offline
Bronze Supporter

Post: #6
RE: Collection of projects
(12-29-2017 12:23 PM)Zervox Wrote:  You mean the spline width? if so you scale the normalized cross vectors
cro1.x=cro1.x*2;
cro1.z=cro1.z*2;
cro2.x=cro2.x*2;
cro2.z=cro2.z*2;
Updated the link.

That did the trick. Thanks a lot.
12-29-2017 07:12 PM
Find all posts by this user Quote this message in a reply
Post Reply