Search Issue Tracker

Fixed in 2019.1.X

Votes

0

Found in

2018.3.0a1

Issue ID

1096382

Regression

No

All arguments are mandatory for (int)PhysicsScene.SphereCast, even though they shouldn't be

Physics

-

How to reproduce:

1. Open any (new) project
2. Import the attached script
- Observe the compilation error
- The error happens because 3 of the arguments have no default value and are therefore not optional.
- Only happens for SphereCast, other multiscene queries work as intended
- Non-multiscene/default scene queries are not affected

Code in the script:

using UnityEngine;

public class ThisShouldCompile : MonoBehaviour
{
void Start()
{
RaycastHit[] hits = new RaycastHit[1];
int number = new PhysicsScene().SphereCast(Vector3.zero, 1.0f, Vector3.forward, hits);
}
}

Comments (203)

  1. ahsanrajput2021

    Jun 27, 2020 15:22

    The website is looking bit flashy and it catches the visitors eyes. Design is pretty simple and a good user friendly interface.
    https://www.boomsbeat.com/articles/285361/20200205/inventhelp-a-stress-free-way-to-get-assistance-with-your-invention.htm

  2. ahsanrajput2021

    Jun 27, 2020 10:53

    I read that Post and got it fine and informative.
    https://eniyipilates.com/aletli-pilates-salonlari/ankara-cayyolu/
    Çayyolu pilates

  3. ahsanrajput2021

    Jun 25, 2020 08:01

  4. ahsanrajput2021

    Jun 24, 2020 12:34

    i read a lot of stuff and i found that the way of writing to clearifing that exactly want to say was very good so i am impressed and ilike to come again in future..
    https://www.pearltrees.com/rafaymughal1#item311639477
    sex power medicine

  5. rajputyahya51

    Jun 24, 2020 11:08

    Superbly written article. if only all bloggers offered the same content as you. the internet would be a far better place..
    <a href=' https://watchhours.com/ '>how to buy watch hours for youtube</a>

  6. naveedshaikh358

    Jun 23, 2020 09:44

    Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!..
    http://www.how-to-fight-depression.com
    How to fight depression

  7. ahsanrajput2021

    Jun 23, 2020 09:35

    I just want to let you know that I just check out your site and I find it very interesting and informative..
    http://duponttyvek.com/
    Dupont Tyvek

  8. ahsanalirajput079

    Jun 21, 2020 15:57

    I have read your article, it is very informative and helpful for me.I admire the valuable information you offer in your articles. Thanks for posting it..
    http://www.stjohn-dfc.com
    St John DFC

  9. ahsanalirajput079

    Jun 20, 2020 11:42

    The website is looking bit flashy and it catches the visitors eyes. Design is pretty simple and a good user friendly interface.
    https://happybirthdaywisheshusband.com/
    Birthday Images for Husband

  10. naveedshaikh358

    Jun 18, 2020 10:25

    Good website! I truly love how it is easy on my eyes it is. I am wondering how I might be notified whenever a new post has been made. I have subscribed to your RSS which may do the trick? Have a great day!
    https://www.startupopinions.com/business-ideas-in-hindi/

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.