Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Help on very simple exercise

Discussion in 'Scripting' started by davicallozaextra, May 6, 2022.

  1. davicallozaextra

    davicallozaextra

    Joined:
    Apr 8, 2021
    Posts:
    2
    Raycast Physics can be applied in numerous situations in a 3D command in Unity, without the need to adjust the calculation by code. Make a script called Destroy that makes a Raycast on the center of the screen on the click of the mouse and if the Raycast hits an gameobject with the tag "Destructible", it applies the command Destroy on it.
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,022
  3. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,735
    Did you literally just directly copy and paste a homework problem here? At least put a little effort into it.
     
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,962
    Sounds good, get to work! Make your schoolteacher proud!!

    The purpose of this forum is to assist people who are ready to learn by doing, and who are unafraid to get their hands dirty learning how to code, particularly in the context of Unity3D.

    This assumes you have at least written and studied some code and have run into some kind of issue.

    If you haven't even started yet, go check out some Youtube videos for whatever game design you have in mind. There are already many examples of the individual parts and concepts involved, as there is nothing truly new under the sun.

    If you just want someone to do it for you, you need go to one of these places:

    https://forum.unity.com/forums/commercial-job-offering.49/

    https://forum.unity.com/forums/non-commercial-collaboration.17/

    https://livehelp.unity.com/?keywords=&page=1&searchTypes=lessons
     
    Deleted User likes this.
  5. Deleted User

    Deleted User

    Guest

  6. davicallozaextra

    davicallozaextra

    Joined:
    Apr 8, 2021
    Posts:
    2
    thanks for the help and the funnies
    wont be lazy around here