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

Slope details. More...

Public Attributes

bool allowSlopes = false
 Set to true if the character can handle slopes. More...
 
float slopeLookAhead = 0.5f
 How far to look ahead when determinin gif the character is on a slope. Large values will make the character tilt in the air. More...
 
float rotationSpeed = 0.25f
 How fast to rotate to the sloped position (and back again) More...
 
float maxRotation = 45f
 The maximum permissable rotation in degrees. More...
 

Detailed Description

Slope details.

Member Data Documentation

bool SlopeDetails.allowSlopes = false

Set to true if the character can handle slopes.

float SlopeDetails.maxRotation = 45f

The maximum permissable rotation in degrees.

float SlopeDetails.rotationSpeed = 0.25f

How fast to rotate to the sloped position (and back again)

float SlopeDetails.slopeLookAhead = 0.5f

How far to look ahead when determinin gif the character is on a slope. Large values will make the character tilt in the air.


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