About Store Forum Documentation Contact



Post Reply 
PathMesh generation code
Author Message
smashthewindow Offline
Member

Post: #1
PathMesh generation code
I'm trying to generate PathMesh for a dynamically generated level.
Could anyone lead me on how i might do this?

Code:
path.create(10); //PathWorld
      
      REPA(Rooms)
      {
         PathMesh * mesh = new PathMesh;
         mesh.create(MeshBase().create(*Rooms[i].mesh), Rooms[i].room_coord, PathSettings().areaSize(10));
        
         path.set(mesh, Rooms[i].room_coord);
      }

The above is my code right now with no luck. (Rooms are 10m sized cubes.)

Any help on this subject would be VERY VERY helpful, I'm doing this for a game jam grin
(This post was last modified: 04-28-2013 08:03 AM by smashthewindow.)
04-28-2013 06:41 AM
Find all posts by this user Quote this message in a reply
smashthewindow Offline
Member

Post: #2
RE: PathMesh generation code
@Esenthel: Is there anyway I could look at how path mesh is generated for static objects?

EDIT: Nevermind, I have figured it out. I wasn't applying the transform to the MeshBase. grin
(This post was last modified: 04-28-2013 07:56 PM by smashthewindow.)
04-28-2013 02:31 PM
Find all posts by this user Quote this message in a reply
Post Reply