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

    Jun 02, 2020 05:59

    Interesting and amazing how your post is! It Is Useful and helpful for me That I like it very much, and I am looking forward to Hearing from your next..
    gta 5 account boost
    https://gtacash.money/

  2. ahsanalirajput079

    Jun 01, 2020 18:24

    Thank you for very usefull information..
    https://urbanartassociation.com/thread/163315/david-batman-watercolour-charity-auction/
    David Choe art

  3. beriberis

    Jun 01, 2020 13:36

    I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well..
    mundschutz https://www.hewecon.de/

  4. ahsanalirajput079

    Jun 01, 2020 11:45

    Nice to be visiting your blog again, it has been months for me. Well this article that i’ve been waited for so long. I need this article to complete my assignment in the college, and it has same topic with your article. Thanks, great share.
    http://ibuyandsellit.com/
    Buying & Selling Assets

  5. naveedshaikh358

    Jun 01, 2020 11:05

    I read your blog frequently and I just thought I’d say keep up the amazing work!
    Judi Slot Online
    http://www.jokergaming439.xyz/

  6. ahsanalirajput079

    May 31, 2020 18:58

    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.
    https://sites.google.com/view/garagedoorrepairgarlandtexas/
    garage doors Garland TX

  7. naveedshaikh358

    May 31, 2020 14:15

    The information you have posted is very useful. The sites you have referred was good. Thanks for sharing...
    garage door repair Spanish Fork UT
    https://sites.google.com/view/garagedoorrepairspanishfork/

  8. ahsanalirajput079

    May 31, 2020 12:28

    Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place..
    https://sites.google.com/view/garagedoorrepairsandieg/
    San Diego garage door repair

  9. naveedshaikh358

    May 31, 2020 10:39

    I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have enjoyed reading. Nice blog, I will keep visiting this blog very often.
    https://www.houzz.com/hznb/professionals/fencing-and-gate-sales-and-construction/armstrong-fence-company-san-diego-pfvwus-pf~2117850448

  10. ahsanalirajput079

    May 30, 2020 18:17

    Your blog provided us with valuable information to work with. Each & every tips of your post are awesome. Thanks a lot for sharing. Keep blogging..
    https://www.linkedin.com/in/toms-william/

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.