Result of a movement query. More...
Public Attributes | |
Vector3 | AvgNormal |
Average normal of all collisions. | |
int | Contacts |
Total number of collisions found in this execution of the movement query. | |
Vector3 | Correction |
Full correction vector to move out of collisions. | |
bool | Grounded |
True if at least one collision (not necessarily closest) qualifies as ground. | |
Vector3 | GroundNormal |
Surface normal of the closest collision that qualifies as ground, if any. | |
Vector3 | NearestNormal |
Surface normal of the nearest collision. | |
float | Penetration |
Magnitude of the penetration over the nearest normal. | |
Vector3 | SlopeTangent |
Surface tangent (recommended movement direction) in case of a slope (based on gravity). | |
Vector3 | Tangent |
Surface tangent (recommended movement direction) in case there's a desired direction passed. | |
MovementType | Type |
Recommended type of movement based on found collisions. | |
Result of a movement query.