directxBOB
asked on
Quick C++ -> C# port Question : Octree *m_children[8]; becomes???
Im following a tutorial as such:
http://kurtm.flipcode.com/devlog-OctreesforPotentialColliders.shtml
Basically we have a constructor:
Octree()
{
for(int i=0; i<8; i++)
{
m_children[i] = NULL;
}
}
Which setups up the octree
The thing is at the bottom we declare m_children :
Octree *m_children[8];
Which is basically the type Octree which has pointer to an array of 8???
Sorry just mixing things up here a little.
http://kurtm.flipcode.com/devlog-OctreesforPotentialColliders.shtml
Basically we have a constructor:
Octree()
{
for(int i=0; i<8; i++)
{
m_children[i] = NULL;
}
}
Which setups up the octree
The thing is at the bottom we declare m_children :
Octree *m_children[8];
Which is basically the type Octree which has pointer to an array of 8???
Sorry just mixing things up here a little.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
excellent thanks
ASKER
MTOcTree[] children = new MTOcTree[8];
This is what I have ported too, I believe it to be correct but I could be completely reading it arse ways,.... Damn Java has corrupted me.