ta-david-yu / 2D-Platformer-Hunter

A 2D Platformer Controller in Unity
MIT License
326 stars 38 forks source link

Build version character controller climb up left wall automatically when contact on left #2

Open ta-david-yu opened 4 years ago

ta-david-yu commented 4 years ago

image This should fix the problem, will update it later

ta-david-yu commented 4 years ago

Also remember when you are using Tilemap Collider, add a composite collider. Always use Polygon instead of Outline

ta-david-yu commented 4 years ago

image

ta-david-yu commented 4 years ago

Spotted: When Collider is disabled, its bound is zero. Should move Raycaster.Init()/CalculateRaycastSpacing() to Awake (before Collider is disabled by others).