I want to move an object either during or after a collision to an arbitrary point. For example, when a box hits the ground, I want to move it back up to the top of the screen.
Take the “CollisionDetection” sample program.
If I add the following into the onLocalCollision function:
self.x = 0
self.y = 0
It gives the following error:
“ERROR: Cannot translate an object before collision is resolved.”
So instead, I add those same two lines to the onLocalPostCollision function instead (which is supposed to be called right after the collision has been resolved). But, the same error happens.
Thanks!
Pete [import]uid: 34723 topic_id: 6071 reply_id: 306071[/import]