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 03, 2020 07:36

    This is really a nice and informative, containing all information and also has a great impact on the new technology. Thanks for sharing it,
    Family Photographer
    https://www.dianachristinephotography.com

  2. ahsanalirajput079

    May 02, 2020 18:06

    I haven’t any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us.
    https://www.beautyinthestill.com
    San Diego Photographer

  3. ahsanalirajput079

    May 02, 2020 07:40

    Awesome blog. I enjoyed reading your articles. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work!
    Wedding Photographer
    https://reneejeanphotography.com

  4. beriberis

    May 01, 2020 18:04

    I’ve read some good stuff here. Definitely worth bookmarking for revisiting. I surprise how much effort you put to create such a great informative website.
    Buy Psychedelics Online https://mandspyschedelics.com/

  5. ahsanalirajput079

    Apr 30, 2020 10:30

    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.
    Here Is What You Should Know About Desitin For Hemorrhoids
    https://www.vingle.net/posts/2895338

  6. ahsanalirajput079

    Apr 29, 2020 10:30

    Nice Informative Blog having nice sharing..
    comprar followers de twitter
    https://www.cherada.net/opus/seguidores-followers-para-tu-twitter

  7. ahsanalirajput079

    Apr 28, 2020 09:07

    Nice post! This is a very nice blog that I will definitively come back to more times this year! Thanks for informative post.
    poshmark tool
    https://ccamillegbush.tumblr.com/

  8. ahsanalirajput079

    Apr 27, 2020 09:54

    Nice post. I was checking constantly this blog and I’m impressed! Extremely useful info specially the last part I care for such information a lot. I was seeking this certain info for a long time. Thank you and good luck.
    http://www.ridgwaystables.co.uk/experience-popcorn-ceiling-removal-jacksonville/

  9. ahsanalirajput079

    Apr 26, 2020 16:55

    I just couldn't leave your website before telling you that I truly enjoyed the top quality info you present to your visitors? Will be back again frequently to check up on new posts.
    http://www.blue-on.net/the-need-for-an-orland-park-electrician/

  10. naveedshaikh358

    Apr 26, 2020 10:04

    Thanks for every other informative site. The place else may just I get that kind of information written in such an ideal means? I have a venture that I’m just now operating on, and I have been on the look out for such information.
    Firestopping Contractors
    https://lockhartsealant.com

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.