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

    Mar 30, 2020 13:18

    I was looking at some of your posts on this website and I conceive this web site is really instructive! Keep putting up..
    https://www.mudassiriqbal.net/
    PMP Exam

  2. ahsanalirajput079

    Mar 30, 2020 07:26

    Thank you again for all the knowledge you distribute,Good post. I was very interested in the article, it's quite inspiring I should admit. I like visiting you site since I always come across interesting articles like this one.Great Job, I greatly appreciate that.Do Keep sharing! Regards,
    https://nextevolutiononline.com/
    orange county seo

  3. ahsanalirajput079

    Mar 28, 2020 12:07

    Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can't wait to read lots of your posts.
    https://www.ejfunday.com/
    E&J Funday Rentals

  4. ahsanalirajput079

    Mar 26, 2020 13:20

    I found this is an informative and interesting post so i think so it is very useful and knowledgeable. I would like to thank you for the efforts you have made in writing this article.
    https://johnsonspharmaceutical.com/shop/products/pharmaceutical/pills/viagra/
    VIAGRA

  5. ahsanalirajput079

    Mar 25, 2020 15:10

    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.
    http://www.haverhillsheetrock.com/
    drywall repair

  6. ahsanalirajput079

    Mar 24, 2020 11:41

    Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!..
    http://www.bucklandplants.co.uk/portable-kitchen-area-islands-and-what-you-should-be-doing/
    kitchen island

  7. ahsanalirajput079

    Mar 19, 2020 17:11

    I'm glad I found this web site, I couldn't find any knowledge on this matter prior to.Also operate a site and if you are ever interested in doing some visitor writing for me if possible feel free to let me know, im always look for people to check out my web site.
    <a href='http://www.lrmd.org/portable-kitchen-islands-for-home-gourmets/'>kitchen island</a>

  8. beriberis

    Mar 19, 2020 08:29

    I found your this post while searching for some related information on blog search...Its a good post..keep posting and update the information.
    How To start a wisp https://www.facebook.com/groups/howtostartawisp/

  9. beriberis

    Mar 18, 2020 09:27

    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.
    tankstellen deutschland https://www.rollenrampe.de/

  10. beriberis

    Mar 17, 2020 09:43

    I really loved reading your blog. It was very well authored and easy to undertand. Unlike additional blogs I have read which are really not tht good. I also found your posts very interesting. In fact after reading, I had to go show it to my friend and he ejoyed it as well!
    animal hospital jacksonville fl https://penzu.com/p/db9b6314

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.