Morrigan
11-02-2010 10:14:45
Hello,
I try to do a application where it's possible to place many items in a room (with collision between object, ground, wall, ...)
I place my items in my scene with setGlobalPosition() in function of the position of my mouse (I use picking on the ground and the physxitems follow my mouse).
I have a problem when I move my items with my mouse and that my items enter in collision with a other object (wall or other object).
In fact with setGlobalPosition() and my picking, when i move my items, my object move IN a other object and so the physic push the two object ...
If I move a chair in a wall with my system, the chair is project. I would like my chair is just block by the wall.
And if the second object is a second chair, I would like my first chair push my second chair (and don't eject the two chair).
I tried some possibility (sleep object when detect a collision, some flags to control the response) but I don't the correct way.
Do you have any solutions to help me ?
Sorry for my english.
Thank.
I try to do a application where it's possible to place many items in a room (with collision between object, ground, wall, ...)
I place my items in my scene with setGlobalPosition() in function of the position of my mouse (I use picking on the ground and the physxitems follow my mouse).
I have a problem when I move my items with my mouse and that my items enter in collision with a other object (wall or other object).
In fact with setGlobalPosition() and my picking, when i move my items, my object move IN a other object and so the physic push the two object ...
If I move a chair in a wall with my system, the chair is project. I would like my chair is just block by the wall.
And if the second object is a second chair, I would like my first chair push my second chair (and don't eject the two chair).
I tried some possibility (sleep object when detect a collision, some flags to control the response) but I don't the correct way.
Do you have any solutions to help me ?
Sorry for my english.
Thank.