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

    May 09, 2020 11:22

    Its a great pleasure reading your post.Its full of information I am looking for and I love to post a comment that "The content of your post is awesome" Great work.
    hvac seo
    https://ppaulkallan.tumblr.com/

  2. ahsanrajput2021

    May 09, 2020 07:44

    Thanks for sharing nice information with us. i like your post and all you share with us is uptodate and quite informative, i would like to bookmark the page so i can come here again to read you, as you have done a wonderful job.
    life insurance ads
    http://lifeeinsuranceaad.bravesites.com/

  3. ahsanrajput2021

    May 09, 2020 06:56

  4. ahsanalirajput079

    May 08, 2020 20:05

    This is very educational content and written well for a change. It's nice to see that some people still understand how to write a quality post!
    http://www.millerdiepenbrock.com
    legal blog

  5. ahsanalirajput079

    May 08, 2020 18:54

    Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can't help but wonder, what about the other side? !!!!!!THANKS!!!!!!
    https://old.reddit.com/r/news/comments/gft08f/click_here_with_the_season_we_change_our_clothes/?
    right lingeries for you

  6. ahsanalirajput079

    May 07, 2020 19:16

    I really appreciate this wonderful post that you have provided for us. I assure this would be beneficial for most of the people.
    http://onliner.us/story.php?title=nifty-call-option
    nifty call option

  7. ahsanalirajput079

    May 07, 2020 13:45

    What a fantabulous post this has been. Never seen this kind of useful post. I am grateful to you and expect more number of posts like these. Thank you very much.
    https://miamiwaterdamagerestoration.org
    Miami water damage restoration

  8. ahsanrajput2021

    May 07, 2020 09:21

    That is really nice to hear. thank you for the update and good luck.
    SD-WAN technology
    https://jharbour79.tumblr.com/

  9. ahsanalirajput079

    May 06, 2020 19:28

    Please continue this great work and I look forward to more of your awesome blog posts.
    https://www.loanreason.com
    Loan Reason Idaho

  10. ahsanalirajput079

    May 06, 2020 13:24

    I recently found many useful information in your website especially this blog page. Among the lots of comments on your articles. Thanks for sharing.
    http://onliner.us/story.php?title=sgx-nifty-live
    sgx nifty live

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.