This project has moved. For the latest updates, please go here.

Using PolygonRigidBody to clip SpriteEntityViews

Topics: Developer Forum
Apr 3, 2007 at 3:42 PM
Hi, Im trying to create a series of rigid polygons that each make up part of a larger rectangular shape for which there is a single image. When I display them i'd like each poly to only show the relevant part of the image (IOW: To define its clipping region). I realise I could define an image with appropriate transparent areas for each poly but this would require the image and poly shapes involved to be pre-set. Imagine your screen image shattering and falling with gravity... thats the effect i'm after initially. Beyond that, I'd like to be able to take any poly and associated Sprite Entity View and "Shatter It". Would be a neat effect eh?! Ok...I'm rambling :-) As i'm just learning this stuff, i'm hoping theres something i've not realised that would help me do this. Cheers, Alister.