About Store Forum Documentation Contact



Post Reply 
Creating Pathmesh
Author Message
Pherael Offline
Member

Post: #1
Creating Pathmesh
How create pathmesh for dynamically created world? I know how do it for terrain only, but I not sure how include static objects. I don't want to use PathObstacle since this class should be use for temporary obstacles and I need to add a lot of static obstacles once.

Well, I think I need iterate all objects from one area and add their phys to MeshBase. Next I should create PathMesh from my MeshBase.
But I don't see any method to add PhysBody or PhysPart to MeshBase, or how convert from PhysPart to MeshBase (or something similar).

So I suppose my thinking is wrong?
03-12-2015 10:22 AM
Find all posts by this user Quote this message in a reply
Zervox Offline
Member

Post: #2
RE: Creating Pathmesh
It is most certainly possible to convert PhysBody to Meshbase.
what you have to do is to use a physbody's parts which is PhysPart.
PhysBody te;
MeshBase temp; temp.create(te.parts[0])
03-12-2015 11:59 AM
Find all posts by this user Quote this message in a reply
Pherael Offline
Member

Post: #3
RE: Creating Pathmesh
Thank you.
Stange, I had to miss it.

I need a cup of coffee -.-
(This post was last modified: 03-12-2015 12:20 PM by Pherael.)
03-12-2015 12:19 PM
Find all posts by this user Quote this message in a reply
Post Reply