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. ahsanalirajput079

    May 30, 2020 10:29

    i really like this article please keep it up.
    https://argadetectives.com/en
    detectives Madrid

  2. beriberis

    May 30, 2020 07:52

    I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business.
    PIA & DPIA Automation software http://enactia.com/

  3. ahsanalirajput079

    May 29, 2020 14:52

    If you are looking for a heating and air conditioning company in the Tulsa County area, Our professional technicians can help you select, install, and maintain equipment to assure efficiency, reliability, and comfort over the lifetime of your products
    https://phemex.co.kr
    페멕스 거래소

  4. naveedshaikh358

    May 28, 2020 15:21

    This is my first time visit here. From the tons of comments on your articles,I guess I am not only one having all the enjoyment right here!
    tow truck surrey bc
    http://www.reflectiontowing.com/

  5. naveedshaikh358

    May 28, 2020 09:24

    I love the way you write and share your niche! Very interesting and different! Keep it coming!
    cash for scrap car
    https://cashforscrapcarsautoremovallangley.ca/

  6. ahsanalirajput079

    May 27, 2020 15:08

    I read a article under the same title some time ago, but this articles quality is much, much better. How you do this..
    https://happybirthdaywisheshusband.com/
    birthday message for husband

  7. naveedshaikh358

    May 27, 2020 13:54

    This is my first time i visit here and I found so many interesting stuff in your blog especially it's discussion, thank you.
    good night flower images
    https://goodnightimage-quotes.com/good-night-images-flowers-pictures/

  8. naveedshaikh358

    May 27, 2020 07:18

    Nice knowledge gaining article. This post is really the best on this valuable topic.
    happy birthday uncle images
    https://birthdaywishes100.com/happy-birthday-uncle-images-pictures/

  9. naveedshaikh358

    May 26, 2020 16:03

    Hello, I have browsed most of your posts. This post is probably where I got the most useful information for my research. Thanks for posting, maybe we can see more on this. Are you aware of any other websites on this subject.
    microsoft
    https://social.msdn.microsoft.com/Profile/yesiwi6445

  10. ahsanalirajput079

    May 24, 2020 17:08

    I know your expertise on this. I must say we should have an online discussion on this. Writing only comments will close the discussion straight away! And will restrict the benefits from this information.
    http://www.nopsquare.com/how-a-locksmith-could-help-you/
    Murray locksmith

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.