smashthewindow
Member
|
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
|
|
04-28-2013 06:41 AM |
|
smashthewindow
Member
|
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.
|
|
04-28-2013 02:31 PM |
|