Hello Guest

Author Topic: Static Sprite Batcher Removing Box Collider + Top Down Game Q  (Read 3246 times)

zachprinz

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 2
    • View Profile
Hey, so I have a series of bushes, and I want these to collide with the user and stop the user from moving, which they do. But once I put them into a static sprite batcher and commit it, they all loose their box colliders and the player can walk right through them.


Also, When making a top down game is the best day to set up your world in the scene like so?


unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Static Sprite Batcher Removing Box Collider + Top Down Game Q
« Reply #1 on: April 10, 2013, 12:37:16 am »
I'm not sure why it isn't working in the static sprite batcher - the static sprite batcher just merges the colliders. The only reason I think it wouldn't work is if you have a poly collider on the player... 2 mesh colliders can't collider unless one of them is convex.

You can rotate the tilemap so its flat on the ground if you want. If you're using the character controller, it works much better this way.