public override void OnControllerColliderHit(ControllerColliderHit hit) { if (hit.get_moveDirection().y <= 0.01f) { this.wallJumpContactNormal = hit.get_normal(); } }
private void OnControllerColliderHit(ControllerColliderHit hit) { if (hit.get_moveDirection().y > 0.01f) { return; } }
public override void OnControllerColliderHit(ControllerColliderHit hit) { if (hit.get_normal().y > (float)0 && hit.get_normal().y > this.groundNormal.y && hit.get_moveDirection().y < (float)0) { if ((hit.get_point() - this.movement.lastHitPoint).get_sqrMagnitude() > 0.001f || this.lastGroundNormal == Vector3.get_zero()) { this.groundNormal = hit.get_normal(); } else { this.groundNormal = this.lastGroundNormal; } this.movingPlatform.hitPlatform = hit.get_collider().get_transform(); this.movement.hitPoint = hit.get_point(); this.movement.frameVelocity = Vector3.get_zero(); } }
public override void OnControllerColliderHit(ControllerColliderHit hit) { if (hit.get_moveDirection().y > 0.01f) { } }