Move object on collision

Hi,
I can’t for the life of me figure out how to change the x-y position of an object when it collides with another object (in this case, I want it to be moved to the middle of the screen when it hits this object. How would this be done? Thanks

-David [import]uid: 10942 topic_id: 3396 reply_id: 303396[/import]

In theory, you might be able to set the type of the object to “kinematic” then change the .x and .y to the new position and set it back to “dynamic” at that point.

That *might* take it out of the grips of the gravity and other interactions so they won’t fight with you, then drop it back in after you make the change.

I think it would still have it’s old rotation and velocity and you may have to zero them out.

I have done this to a limited extent, but haven’t really worked with it that much and if they kept their other movement attributes it was ok in my situation.
[import]uid: 5210 topic_id: 3396 reply_id: 10478[/import]