Hello Guest

Author Topic: Static sprite batcher collider  (Read 3500 times)

tgwm

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 12
    • View Profile
Static sprite batcher collider
« 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

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Static sprite batcher collider
« Reply #1 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.

tgwm

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Static sprite batcher collider
« Reply #2 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) .

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Static sprite batcher collider
« Reply #3 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.