PRO: Collision messed up after removing and re-adding
by Jemand den es nicht gibt · in Torque Game Builder · 07/09/2006 (8:19 am) · 0 replies
Hiya,
in my game I have a player character and I want this character to persist during the whole game. I am not using the in-built persistant object stuff because it's not usable for my purpose. Anyway, when my character leaves his world limit I do the following steps:
- remove from scene
- load new level
- add to new scene graph
- set new position
- mount window back to object
After that my character gets stuck sideways to obstacles. I found out(by using the console) that this always happens if I remove and re-add an object to the scenegraph. Any idea why? Maybe this isn't even a bug and I am forgetting to call a function...
in my game I have a player character and I want this character to persist during the whole game. I am not using the in-built persistant object stuff because it's not usable for my purpose. Anyway, when my character leaves his world limit I do the following steps:
- remove from scene
- load new level
- add to new scene graph
- set new position
- mount window back to object
After that my character gets stuck sideways to obstacles. I found out(by using the console) that this always happens if I remove and re-add an object to the scenegraph. Any idea why? Maybe this isn't even a bug and I am forgetting to call a function...