I've setup my environment in a way that uses scenes as separate layers. So for example, a multi-story building would use a separate scene on each floor. When characters travel between these floors, they need to switch scenes. This is where I'm hitting a spot of trouble.
Since PxControllerManager requires a PxScene to construct, I'm assuming I need a manager for each layer/floor of my building (for example). But I can't seem to find the functionality to switch a character controller from one PxControllerManager to another. Is this not possible?
If not, what would be the best option here? Should I create a new controller for a character (as well as delete the old one) each time they travel between floors? Or am I just not using the scene system the way the API intended?
I've setup my environment in a way that uses scenes as separate layers. So for example, a multi-story building would use a separate scene on each floor. When characters travel between these floors, they need to switch scenes. This is where I'm hitting a spot of trouble.
Since
PxControllerManager
requires aPxScene
to construct, I'm assuming I need a manager for each layer/floor of my building (for example). But I can't seem to find the functionality to switch a character controller from onePxControllerManager
to another. Is this not possible?If not, what would be the best option here? Should I create a new controller for a character (as well as delete the old one) each time they travel between floors? Or am I just not using the scene system the way the API intended?
Really appreciate any assistance!