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

    May 19, 2020 19:39

    it was a wonderful chance to visit this kind of site and I am happy to know. thank you so much for giving us a chance to have this opportunity..
    send sms cyprus https://www.steilesms.com/en/

  2. ahsanrajput2021

    May 19, 2020 12:33

    I recently found many useful information in your website especially this blog page. Among the lots of comments on your articles. Thanks for sharing.
    sfr mail
    https://www.glocalgeneration.com/4693/yahoo-mail-login-learn-more/

  3. ahsanalirajput079

    May 19, 2020 12:27

    Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info.
    https://tokuhou-center.com/1966/yahoo-mail-login-new-light-on-a-relevant-point/
    sbcglobal email login

  4. ahsanrajput2021

    May 19, 2020 07:42

    Thanks for this great post, i find it very interesting and very well thought out and put together. I look forward to reading your work in the future.
    yahoo mail
    https://www.kingstonfoodfestival.com/1838/yahoo-mail-login-look-at-this-article/

  5. ahsanrajput2021

    May 18, 2020 12:40

    Thanks for sharing the post.. parents are worlds best person in each lives of individual..they need or must succeed to sustain needs of the family.
    email server settings
    https://raeesmovieonline.com/13403/yahoo-mail-login-discover-innovative-skills/

  6. ahsanalirajput079

    May 17, 2020 19:35

    Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place..
    https://www.instapaper.com/read/1306213536
    Mode München

  7. ahsanalirajput079

    May 17, 2020 12:41

    I read a article under the same title some time ago, but this articles quality is much, much better. How you do this..
    https://industrialsupply4less.com/
    Industrial Supply 4 Less

  8. ahsanalirajput079

    May 17, 2020 11:43

    Great post, and great website. Thanks for the information!
    https://playsetzone.com
    Playset Zone

  9. ahsanalirajput079

    May 16, 2020 22:01

    Great post, and great website. Thanks for the information!
    https://n1d.ca/
    Web Design Ottawa

  10. waqarscientist

    May 16, 2020 16:46

    We are getting more than 1 million visitors per month and growing! See Link Now For New Offers we Carry All New Dvds Globally And Video ON DEMAND AND Enhancers Pills,Books,Magazines,Order Today Plus We Got Backlink Offers!. [url="https://prizebondlucky.net/guesspapers.php"]u prize bond[/url]

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.