2D Toolkit Forum

2D Toolkit => Support => Topic started by: tgwm on March 09, 2014, 02:33:26 pm

Title: Static sprite batcher collider
Post by: tgwm on March 09, 2014, 02:33:26 pm
Hi, Is it possible to add box collider to game objects that are included in the sprite batcher?

For example.
Static Sprite Batcher
 - Child A
 - Child B
 - Child C

every child with a separate collider?


Thanks
Title: Re: Static sprite batcher collider
Post by: unikronsoftware on March 09, 2014, 02:36:55 pm
No, the static sprite batcher only batches colliders from sprites. If you want you can create a transparent sprite and then use that to create the colliders.
Title: Re: Static sprite batcher collider
Post by: tgwm on March 09, 2014, 02:47:43 pm
Another question
When the static sprite batcher is not committed the number of tris and vertes are less and when it is committed, tris are more( as per the example provided in the 2d package) .
Title: Re: Static sprite batcher collider
Post by: unikronsoftware on March 09, 2014, 02:57:14 pm
It should be exactly the same, but in that sample 2 of the tiles are out of view, and culled when not committed.