assign portals to leaves of bsp tree

14 views
Skip to first unread message

Andrusza

unread,
Nov 27, 2011, 12:51:29 PM11/27/11
to Away3D.dev
i am working on pathfinding in bsp model
to get it done i need to assign portals to leaves however nor nodes or
leaves does not contain such information :(

BSPNode class contains method "generateportals" however i don't
understand how it works :/
1) why i should pass root node and what is root node
2) if i do something like this tree.rootnode.generateportals(????
tree.rootnode) i always get exception

_negativeNode=null
splits = _negativeNode.splitPortalByChildren(splits[1], side);

does anyone know how to do it right?

Reply all
Reply to author
Forward
0 new messages