A hole in the object.

Discuss issues specific to the Flash/AS3 port of Box2D
kestorr
Posts: 32
Joined: Tue May 22, 2012 2:37 am

A hole in the object.

Postby kestorr » Sat Aug 18, 2012 10:42 am

Howdy.
Is there a method, when creating an object with shapedef and bodydef. to make it have a hole in it?
For exemple i want a rectangle 100x100 with a circle hole in the center of it, the circle hole being 10x10. I tohught doing it like this, just make 2 shapedefs in the actor object one the rectangle one the circle, set their positions and make circle with isSensor=true. but doesnt work. Any other way?

Return to “Flash”



Who is online

Users browsing this forum: Bing [Bot] and 4 guests