Hello
Guest
Home
Help
Search
Login
Register
2D Toolkit Forum
»
2D Toolkit
»
Support
»
Static sprite batcher collider
« previous
next »
Print
Pages: [
1
]
Author
Topic: Static sprite batcher collider (Read 4500 times)
tgwm
2D Toolkit
Newbie
Posts: 12
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
Logged
unikronsoftware
Administrator
Hero Member
Posts: 9709
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.
Logged
tgwm
2D Toolkit
Newbie
Posts: 12
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) .
Logged
unikronsoftware
Administrator
Hero Member
Posts: 9709
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.
Logged
Print
Pages: [
1
]
« previous
next »
2D Toolkit Forum
»
2D Toolkit
»
Support
»
Static sprite batcher collider