Search Unity

how can i use two raycasts in code ?

Discussion in 'Scripting' started by maximmolek785439, Jan 7, 2022.

  1. maximmolek785439

    maximmolek785439

    Joined:
    Sep 19, 2020
    Posts:
    89
    Hi, I need help, I would like to use raycast physics types in the code, how can I choose it? i have two wallcheck and climbcheck how can i select a wallcheck and paste it into the code as a second raycast ?Thank you in advance for your reply:)
     

    Attached Files:

  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,697
    I'm not sure what you're asking. Are you asking how to use Layers to be able to differentiate different raycast targets?

    As always, whatever game you are copying, go look up Youtube tutorials and see how they did it. No sense us trying to guess what climbing / walling game you're doing.