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 (202)

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

  2. 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/

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

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

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

  6. 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/

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

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

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

  10. 7948c5f9c66bd06a22b5cc1ba234e146?d=mm

    pyjehefy

    Aug 15, 2020 14:40

    All the contents you mentioned in post is too good and can be very useful. I will keep it in mind, thanks for sharing the information keep updating, looking forward for more posts.Thanks
    Wet Umbrella Wrapping Machines Buy Now http://mcdonaldauto.ning.com/profiles/blogs/pallet-wrapping-machine-why-the-rotary-tower-method-is-regarded

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.