Hello,
I am working on changing one scene to another (i.e. making the game character move from the road into a church). Both the scenes make use of collision detection. I have used two different collision traversers namely: roadTrav and churchTrav, for the two scenes respectively. Unfortunately as I unload the road scene and load the church scene, the roadTrav still applies to the church scene and the churchTrav seems to be having no effect at all
During the unloading of the first scene, I have used :
self.ralph.roadTrav.clearColliders()
The collision sphere which is used for initializing the scene change from road to church after detecting the character appears in the chuch scene too even though I have used
“self.churchDoorNP.hide()” and “self.churchDoorNP.removeNode()”. The collision lines are visible but as soon as the “self.roadTrav.showCollisions(render)” statement from the road scene is disabled, these disappear. Meanwhile, “self.churchTrav.showCollisions(render)” has no effect in the church scene.
The character and the camera do not move smoothly at all in the new scene.
Please provide your guidance on this issue.
Regards,
Dev.