2D Toolkit Forum

2D Toolkit => Support => Topic started by: Dorf_Midget on November 03, 2013, 04:42:30 pm

Title: Tilemap & Friction
Post by: Dorf_Midget 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?
Title: Re: Tilemap & Friction
Post by: unikronsoftware on November 04, 2013, 01:01:11 pm
How are you moving your character?
Title: Re: Tilemap & Friction
Post by: Dorf_Midget 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().
Title: Re: Tilemap & Friction
Post by: unikronsoftware 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.
Title: Re: Tilemap & Friction
Post by: Dorf_Midget on November 06, 2013, 06:36:13 am
Thanks for the answer. That fixed it :)