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

    Aug 09, 2020 07:06

    Positive site. where did u come up with the information on this posting? I'm pleased I discovered it though. ill be checking back soon to find out what additional posts you include.
    zawa bán ở đâu https://chuyensuckhoesacdep.com/zawa/

  2. rajputyahya51_unity

    Aug 04, 2020 08:30

    thank you for a great post.
    NJ traffic https://slides.com/sonitufo

  3. pyjehefy

    Jul 29, 2020 10:42

    I have read your blog it is very helpful for me. I want to say thanks to you. I have bookmark your site for future updates.
    http://www.administaffservices.com/

  4. rajputyahya51_unity

    Jul 29, 2020 09:25

    Wow what a Great Information about World Day its very nice informative post. thanks for the post.
    Real Estate Photo Editing USA https://imageedits.com/

  5. rajputyahya51_unity

    Jul 28, 2020 12:15

    Thank you very much for keep this information.
    Spy software reviews https://www.spysoftwarecoupon.com

  6. rajputyahya51_unity

    Jul 28, 2020 11:17

    Thanks for sharing the info. keep up the good work going.... I really enjoyed exploring your site. good resource...
    health test kit sales https://stdtestingcoupon.com

  7. rajputyahya51_unity

    Jul 28, 2020 05:25

    Wonderful illustrated information. I thank you about that. No doubt it will be very useful for my future projects. Would like to see some other posts on the same subject!
    cheap CBD stores online https://www.cbdoilcouponcode.com

  8. saurabhmehetre4r

    Jul 27, 2020 16:21

    This one is good. keep up the good work!..
    keep it up

    https://newanotherpanel.com/

  9. rajputyahya51_unity

    Jul 26, 2020 10:08

    These are some great tools that i definitely use for SEO work. This is a great list to use in the future..
    thực phẩm chức năng m1820 https://chuyensuckhoesacdep.com/m1820/

  10. pyjehefy

    Jul 20, 2020 13:32

    It was a very good post indeed. I thoroughly enjoyed reading it in my lunch time. Will surely come and visit this blog more often. Thanks for sharing.
    Wefinex là gì https://www.slideshare.net/TimClow1/buying-engagement-rings-online-avoid-the-pitfalls-get-the-best-deals-236519208

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.