specific collision flags
-
- Posts: 14
- Joined: Tue Jun 28, 2011 4:11 am
specific collision flags
Hello. I have a game in with a type of collision shape that i only want to collide with certain other objects. I have blocks and i have robots. They both have their own bodies. I don't want the blocks to collide with the other blocks, and i want the robots to bump into the blocks but i dont want the blocks to be moved by the robots. I was thinking about setting a custom collision flag for each blocks and robots. How would i make it so that in a collision between two objects one is effectef but not the other?thanks
-
- Posts: 168
- Joined: Tue Jan 04, 2011 11:47 pm
Re: specific collision flags
collision masks, check the tutorialsJohnBoyMan wrote:Hello. I have a game in with a type of collision shape that i only want to collide with certain other objects. I have blocks and i have robots. They both have their own bodies. I don't want the blocks to collide with the other blocks, and i want the robots to bump into the blocks but i dont want the blocks to be moved by the robots. I was thinking about setting a custom collision flag for each blocks and robots. How would i make it so that in a collision between two objects one is effectef but not the other?thanks