That’s right but since I attach a Control which simply adds it’s spatial to that List, it works fine.
I have some problems, though:
I need to implement culling checks in that collideWith (already googling that) and
I need to improve performance
It limits me down to 40 FPS (What it actually does is only colliding one (!) ray with 50 Character Controls.
I guess it’s not using that capsule but the complex shape. Is there something I could do about it?
Can I maybe simply use s.getControl(BetterCharacterControl.class).getCollisionShape() or something?
Edit: Spatial.checkCulling throws an Exception because of wrong refreshFlags. I guess I can only call that method in onRender()?
Edit2: I now implemented Culling as seen here, but I now see that I have plenty of unneccesary Controls updating when not culled.
Can I simply use the controlRender() for my GameLogic or do I run into troubles when trying to modify the SceneGraph from there?