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