- Home /
Question by
AkashJefe · Jul 10, 2020 at 02:44 AM ·
collidercharactercontrollercontrollerandroid buildthird person controller
What is Happening here? please help.
private void OnControllerColliderHit(ControllerColliderHit hit)
{
if (hit.point.z > transform.position.z + controller.radius)
Death();
}
i'am using this script for my 3rd person character to die if it hits any collider infront which is Z axis. But i'am dying when my Character is on the ground which is Y axis. Did i do something wrong?
i'm a beginner so pleas don't abuse me if the solution is obvious.
Comment
Your answer
Follow this Question
Related Questions
ThirdPersonController character hovers above capsule collider 2 Answers
CharacterController.Move becomes really slow after I move seperate colliders 1 Answer
Follow script problem 1 Answer
The equivalent of a Character Controller that can be rotated 1 Answer
Randomly some prefab instances have Character controller misaligned 0 Answers