2D Platform Controller  v1.7.0
Autogenerated code documentation for the 2D Platform Controller.
 All Classes Functions Variables Properties
SetUpPhysics Class Reference

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}
 

Detailed Description

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.


The documentation for this class was generated from the following file: