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

    Apr 25, 2020 22:04

    I wanted to thank you for this excellent read!! I definitely loved every little bit of it. I have you bookmarked your site to check out the new stuff you post.
    https://unchartedfx.com/
    forex trading courses

  2. ahsanalirajput079

    Apr 25, 2020 12:31

    I havent 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://vancouverbitcoin.com/
    buy sell bitcoin

  3. naveedshaikh358

    Apr 25, 2020 07:27

    I just want to let you know that I just check out your site and I find it very interesting and informative..
    electric bicycles vancouver
    https://motorino.ca/

  4. ahsanalirajput079

    Apr 24, 2020 07:05

    Interesting post. I Have Been wondering about this issue, so thanks for posting. Pretty cool post.It 's really very nice and Useful post.Thanks
    https://cashforscrapcarsautoremovallangley.ca/surrey
    cash for scrap cars surrey

  5. naveedshaikh358

    Apr 23, 2020 11:41

    Nice post! This is a very nice blog that I will definitively come back to more times this year! Thanks for informative post.
    garage door Sugar Land
    http://hydrochlorothiazide2018.us.com/garage-door-repair-sugarland/

  6. ahsanalirajput079

    Apr 23, 2020 09:55

    Hi! Thanks for the great information you havr provided! You have touched on crucuial points!
    http://ledesire.shop/garage-door-repair-troubleshooting-tip/
    garage doors Baytown TX

  7. naveedshaikh358

    Apr 23, 2020 09:52

    Your website is really cool and this is a great inspiring article. Thank you so much.
    auto locksmith Renton
    https://brennanwhitney70.skyrock.com/3331500374-Murphy-s-Rules-implies-that-next-time-you-receive-shut-out-of-the.html

  8. naveedshaikh358

    Apr 23, 2020 07:52

    thanks for this usefull article, waiting for this article like this again.
    auto locksmith Kirkland
    www.nopsquare.com/a-more-objective-perspective-on-locksmiths/

  9. ahsanalirajput079

    Apr 23, 2020 07:23

    i am always looking for some free stuffs over the internet. there are also some companies which gives free samples.
    http://crweworld.com/australia/queensland/central-queensland/localnews/news/1251705/might-you-want-you-bought-a-locksmith-in-westminster-colorado
    auto locksmith Westminster

  10. ahsanalirajput079

    Apr 22, 2020 15:02

    This is a smart blog. I mean it. You have so much knowledge about this issue, and so much passion. You also know how to make people rally behind it, obviously from the responses.
    https://yusuf39hunt.skyrock.com/3331501688-What-goes-on-when-you-find-yourself-secured-out-Law-enforcement-are.html
    car locksmith Puyallup

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.