Häufig verwendete Methoden
Häufig verwendete Methoden
Häufig verwendete Methoden
Häufig verwendete Methoden
// Update is called once per frame void FixedUpdate() { SurfaceInfo surfaceInfo = raycaster.GetSurfaceInfo(GetComponent <CapsuleCollider>()); Upright = surfaceInfo.Pitch <= maxUprightPitch && surfaceInfo.RaycastOriginResult; Grounded = surfaceInfo.Pitch <= maxUprightPitch && !surfaceInfo.RaycastOriginResult; Movement(Upright, surfaceInfo); InputJump(Grounded || Upright); InputBoost(); }