Hello Guest

Author Topic: Tilemap & Friction  (Read 4367 times)

Dorf_Midget

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 3
    • View Profile
Tilemap & Friction
« on: November 03, 2013, 04:42:30 pm »
I'm having a problem with a top-down character movement. The walls slow down movement due to friction (I assume). Is there a way to change the friction on the tiles?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Tilemap & Friction
« Reply #1 on: November 04, 2013, 01:01:11 pm »
How are you moving your character?

Dorf_Midget

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Tilemap & Friction
« Reply #2 on: November 04, 2013, 08:14:31 pm »
I have 2 sprites (head and body)  attached to an Empty GameObject. The body sprite has a BoxCollider. The Empty GameObject has a rigidbody and I move it with AddForce().

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Tilemap & Friction
« Reply #3 on: November 05, 2013, 12:07:40 pm »
In the tile map layer settings, you can assign a physics material to each tile map layer. Physics settings can be assigned there.

Dorf_Midget

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Tilemap & Friction
« Reply #4 on: November 06, 2013, 06:36:13 am »
Thanks for the answer. That fixed it :)