Search Issue Tracker

Fixed in 2019.1

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. Cf0a31b3b359ff4f64b79ac11677dd7f?d=mm

    xxgg1313

    Nov 06, 2020 06:35

    I am so happy to read this. This is the type of manual that needs to be given and not the accidental misinformation that is at the other blogs. Appreciate your sharing this greatest doc.

    mybets88.com

  2. 438e4a55b167d4eb8ad9e95c4cfcff1e?d=mm

    naveedshaikh358

    Aug 26, 2020 12:34

    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://www.moitruongphapluancongvn.org/
    Pháp Luân Công Việt Nam

  3. 37affc1fabea6a49421a759c03053db3?d=mm

    rajputyahya51_unity

    Aug 24, 2020 09:01

    The website is looking bit flashy and it catches the visitors eyes. Design is pretty simple and a good user friendly interface.
    att email setting for thunderbird https://www.att-email-settings.com/

  4. 438e4a55b167d4eb8ad9e95c4cfcff1e?d=mm

    naveedshaikh358

    Aug 24, 2020 08:38

    Thank you for another great article. Where else could anyone get that kind of information in such a perfect way of writing? I have a presentation next week, and I am on the look for such information.
    https://www.c4social.com/
    orlando digital marketing company

  5. 438e4a55b167d4eb8ad9e95c4cfcff1e?d=mm

    naveedshaikh358

    Aug 24, 2020 08:14

    Thank you for some other informative blog. Where else could I get that type of information written in such an ideal means? I have a mission that I’m just now working on, and I have been at the look out for such information.
    https://www.dynamitestudioinc.com/
    corporate photographer orlando

  6. 37affc1fabea6a49421a759c03053db3?d=mm

    rajputyahya51_unity

    Aug 23, 2020 18:15

    Excellent and very exciting site. Love to watch. Keep Rocking.
    delivery service https://www.theverge.com/2020/7/6/21312447/uber-postmates-acquisition-announced-food-delivery

  7. 8d5268c6eced39d16ff0aa3048193891?d=mm

    mailanaruba

    Aug 23, 2020 12:34

    All the contents you mentioned in post is too good and can be very useful. I will keep it in mind
    thuốc tăng kích thước dương vật tốt nhất https://www.arubastudy.org/thuoc-tang-kich-thuoc-duong-vat/

  8. 8d5268c6eced39d16ff0aa3048193891?d=mm

    mailanaruba

    Aug 23, 2020 12:31

    The information you have posted is very useful. The sites you have referred was good. Thanks for sharing.
    viên ngậm tengsu https://www.arubastudy.org/vien-ngam-tengsu/

  9. 438e4a55b167d4eb8ad9e95c4cfcff1e?d=mm

    naveedshaikh358

    Aug 23, 2020 12:29

    Wow what a Great Information about World Day its very nice informative post. thanks for the post.
    https://www.birthdaycards-images.com/
    Happy Birthday Cards Images

  10. 37affc1fabea6a49421a759c03053db3?d=mm

    rajputyahya51_unity

    Aug 20, 2020 13:50

    The information you have posted is very useful. The sites you have referred was good. Thanks for sharing...
    on demand delivery https://www.marketwatch.com/story/square-enables-retailer-customers-to-offer-on-demand-deliveries-via-courier-2020-06-24

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.