Added CollisionFiltering Example (Box2D)

  ... information about changes and new features of AndEngine,

Added CollisionFiltering Example (Box2D)

Postby Nicolas Gramlich » Sun Oct 03, 2010 3:05 pm

Hello Community,

I just added the PhysicsCollisionFilteringExample and thought some of you might be interested in this. This example show how to make categories of objects that collide or not collide.

In this case Boxes will collide only with boxes and circles will only collide with circles.

Source: http://code.google.com/p/andengineexamp ... ample.java

Best Regards,
Nicolas
Nicolas Gramlich
Site Admin
 
Posts: 1734
Joined: Mon Jun 07, 2010 6:20 pm
Location: Schriesheim, Germany

Re: Added CollisionFiltering Example (Box2D)

Postby alex » Mon Oct 04, 2010 1:24 am

Awesome!
Thank you
alex
 
Posts: 275
Joined: Thu Jul 01, 2010 8:21 pm

Re: Added CollisionFiltering Example (Box2D)

Postby albrandroid » Mon Oct 04, 2010 9:55 am

Great! :check:
Danke! ;)
albrandroid
 
Posts: 26
Joined: Thu Aug 12, 2010 9:17 am
Location: Vienna

Re: Added CollisionFiltering Example (Box2D)

Postby Radzell » Sat Dec 04, 2010 12:36 pm

I tried doing this could you explain how how it works so i can get a better understanding for my game.
Radzell
 
Posts: 465
Joined: Sun Jul 04, 2010 8:52 am

Re: Added CollisionFiltering Example (Box2D)

Postby blandonfrank » Sun Dec 05, 2010 8:03 pm

Radzell,

Here's a nice explaination of collision filtering:
http://blog.allanbishop.com/box-2d-2-1a ... filtering/

Note that in the tutorial/example it shows what the factory is doing in the background.
blandonfrank
 
Posts: 298
Joined: Fri Jul 23, 2010 9:46 pm


Return to Updates

Who is online

Users browsing this forum: No registered users and 4 guests