Photon Fusion 1.1.11

Public Attributes | List of all members
NetworkCharacterController.Movement Struct Reference

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...
 

Detailed Description

Result of a movement query.

Member Data Documentation

◆ AvgNormal

Vector3 AvgNormal

Average normal of all collisions.

◆ Contacts

int Contacts

Total number of collisions found in this execution of the movement query.

◆ Correction

Vector3 Correction

Full correction vector to move out of collisions.

◆ Grounded

bool Grounded

True if at least one collision (not necessarily closest) qualifies as ground.

◆ GroundNormal

Vector3 GroundNormal

Surface normal of the closest collision that qualifies as ground, if any.

◆ NearestNormal

Vector3 NearestNormal

Surface normal of the nearest collision.

◆ Penetration

float Penetration

Magnitude of the penetration over the nearest normal.

◆ SlopeTangent

Vector3 SlopeTangent

Surface tangent (recommended movement direction) in case of a slope (based on gravity).

◆ Tangent

Vector3 Tangent

Surface tangent (recommended movement direction) in case there's a desired direction passed.

◆ Type

Recommended type of movement based on found collisions.