Search Unity

Question My boxcast only returns one value

Discussion in 'Physics' started by Jorge_Membrillera, Dec 8, 2023.

  1. Jorge_Membrillera

    Jorge_Membrillera

    Joined:
    Feb 4, 2023
    Posts:
    2
    I have followed several tutorials, I´ve literally copied the code for both Raycasts and Boxcasts for groundcheck. However, none of them seem to work properly, despite following the videos. They will only return True or False depending on the use of - transform.up or Vector3.down. I am also very new to Unity but this has been bugging me for the last 3 days. I appreciate any help, thank you very much.
    I have shared the code below.
     

    Attached Files:

  2. Jorge_Membrillera

    Jorge_Membrillera

    Joined:
    Feb 4, 2023
    Posts:
    2
    Nevermind I just posted that and realized I had my capsule parented to an empty that did not correspond with the player height and fixed it. Hopefully that may help anyone who comes across a similar problem.