I've recently implemented the broadphase frustum culling from the packaged demos ( \\Demo\\Demos\\Physics\\Api\\Collide\\Broadphase\\Culling ).
The frustum rotates in tune with the viewing direction just fine and seems perfect in the Havok VDB. I have things setup to record the m_id's of the bodies within the frustum. These bodies have game objects that are drawn, everything else is not drawn (thus culled).
The problem is, the culling in my game seems dependant on the cameras angle and rotation (as in it slides around too far, and objects stop drawing too soon ). This is confusing because in the VDB the the frustum rotates and translates just fine.
Here is my code: http://pastebin.com/6hGV6fXT
Also, the frustum plane winding performed in the demo (CCW I belive)
leaves me with no collisions at all. I first expected the demo's
windings to work and I'm not sure why they do not. So as it stands now
the frustum's planes are facing inwards I believe.
Has anyone experienced this before? Thanks for the help.