added some stuff for a version of Unity that isn't yet available...
added a nice, clean, useable physics based movement system and example (that only works with mythical versions of Unity >= 4.5)
massive reorganization of the folder structure to simplify bringing the CharacterController2D into existing projects
learning to spell
this commit only exists to show how much of a fool i am. pretty much all of it will be reverted out in a moment.
i believe this update will fix any and all issues with corner penetration
just added a comment explaining what we were doing
removed tester blocks
updated slope handling to work both vertically and horizontally. the CC2D will now stay grounded when going down slopes.
note that the slopeSpeedModifier now requires values from -90 - 90. the -90 - 0 section is used for downward slopes.
cleaned up that last round of changes:
- added properties for skinWidth and slopeLimit so that the setters can be used to trigger recalculations
- cached the tangent call since it will be hit every frame
disable the player collider in Awake since it doesn't serve any purpose other than as a way to calculate ray origins
added movingDownSlope and slopeAngle to collisionState to provide some extra relevant information
made the slopeSpeedModifier curve > 0 when on a negative slope