Character Controller Pro 1.4.11
A 2D/3D character controller asset for Unity.
|
This class contains the collision information gathered from of all the different physics queries (raycast, capsuleCast, etc). This information is very important for movement prediction. More...
Public Member Functions | |
void | Reset () |
Resets all the fields to their default values. | |
void | SetData (in HitInfo hitInfo, Vector3 upDirection, Vector3 displacement) |
Sets the fields values based on the character movement. | |
void | SetData (in HitInfo hitInfo, Vector3 upDirection, Vector3 displacement, in HitInfo upperHitInfo, in HitInfo lowerHitInfo) |
Sets the fields values based on the character movement. | |
Public Attributes | |
HitInfo | hitInfo |
The physics query data. | |
Vector3 | displacement |
The available displacement obtained as the result of the collision test. By adding this vector to the character position, the result will represent the closest possible position to the hit surface. | |
float | contactSlopeAngle |
The angle between the contact normal and the character up vector. | |
bool | isAnEdge |
Flag that indicates if the character is standing on an edge or not. | |
bool | isAStep |
Flag that indicates if the character is standing on an step or not. | |
Vector3 | edgeUpperNormal |
Normal vector obtained from the edge detector upper ray. | |
Vector3 | edgeLowerNormal |
Normal vector obtained from the edge detector lower ray. | |
float | edgeUpperSlopeAngle |
Angle between the character up vector and the edge detector upper normal. | |
float | edgeLowerSlopeAngle |
Angle between the character up vector and the edge detector lower normal. | |
float | edgeAngle |
Angle between the edge detector upper normal and the edge detector lower normal. | |
This class contains the collision information gathered from of all the different physics queries (raycast, capsuleCast, etc). This information is very important for movement prediction.