|
2D Platform Controller
v1.7.0
Autogenerated code documentation for the 2D Platform Controller.
|
Set gravity to a higher value as it looks and feel better. Make sure the ingore raycasts layer doesn't collide with any of the character layers the defaul layer or itself. More...
Inherits MonoBehaviour.
Public Attributes | |
| float | gravity = -12.0f |
| RaycastCharacterController | character |
| float | timeScale = 1.2f |
| int[] | ignoreColliderLayers = new int[]{2} |
Set gravity to a higher value as it looks and feel better. Make sure the ingore raycasts layer doesn't collide with any of the character layers the defaul layer or itself.
Note you should set this up in your Physics settings, this script is here mainly to facillitate the examples.