[Physics behavior]custom collision mask test

Post your own tutorials, guides and demos.

Post » Sat Aug 09, 2008 6:52 pm

Here is my very little test od custom collision mask of physics behavior ;)

Left mouse button - add square
Roght mouse button - add "diamond"
R - erease squares and "diamonds"

Have fun ;)
B
6
S
3
G
7
Posts: 138
Reputation: 3,547

Post » Sun Aug 10, 2008 5:45 am

You fail at drawing diamonds :P

But good example otherwise :) Remember when you make the vector you can use the control key and the mouse wheel to zoom in to the layout editor, and get better control of clicking!
B
4
S
2
G
5
Posts: 641
Reputation: 3,011

Post » Sun Aug 10, 2008 12:43 pm

I found a bug! Delete some stuff you spawned and spawn new diamonds : they will collide with the non-existent stuff
B
2
S
2
G
5
Posts: 512
Reputation: 2,674

Post » Sun Aug 10, 2008 2:21 pm

Doh! Forgot to free the box2d body. Fixed for next version.
B
4
S
2
G
5
Posts: 641
Reputation: 3,011


Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 0 guests