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

  1. 9e035c21beb63632ef265d5b599e4eca?d=mm

    princesmmteam

    Jul 09, 2020 02:13

    Thank you for taking the time to publish this information very useful!

    My website. https://princesmm.in/

  2. C40f230e6205345dccc49d3be1293f74?d=mm

    Jasmine2020

    Jul 03, 2020 03:15

    FANTASTIC!!! Quite an interesting read. Luv the write-up. Looking forward to more here>>> https://vospharmacy.com/product/belviq-10mg/

  3. 37affc1fabea6a49421a759c03053db3?d=mm

    rajputyahya51_unity

    Jun 30, 2020 19:49

    This is really a nice and informative. containing all information and also has a great impact on the new technology. Thanks for sharing it.
    <a href=' http://footballraidersofficialauthentics.com/secure-your-automobile-anywhere-and-anytime/ '>Car key replacement San Antonio TX</a>

  4. 37affc1fabea6a49421a759c03053db3?d=mm

    rajputyahya51_unity

    Jun 30, 2020 16:59

    Thanks for the post and great tips..even I also think that hard work is the most important aspect of getting success..
    <a href=' http://longbeachkeyreplacement.mystrikingly.com/ '>Honda remote fob programming </a>

  5. 37affc1fabea6a49421a759c03053db3?d=mm

    rajputyahya51_unity

    Jun 29, 2020 15:19

    This one is good. keep up the good work!..
    <a href=' https://sites.google.com/view/bostonkeyreplacement/home '>Toyota lost keys made </a>

  6. 37affc1fabea6a49421a759c03053db3?d=mm

    rajputyahya51_unity

    Jun 29, 2020 11:57

    Very interesting blog. Alot of blogs I see these days don't really provide anything that I'm interested in. but I'm most definately interested in this one. Just thought that I would post and let you know.
    <a href=' https://sites.google.com/view/inglewoodkeyreplacement/home '>Nissan keyless entry </a>

  7. 53af055a3d403c9cec26f1e165fa7f12?d=mm

    ahsanrajput2021

    Jun 28, 2020 11:51

    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.
    http://www.yemenembassy-ethiopia.org/how-to-choose-the-right-charleston-wedding-photographer/
    Charleston Wedding Photographer

  8. 53af055a3d403c9cec26f1e165fa7f12?d=mm

    ahsanrajput2021

    Jun 27, 2020 15:22

    The website is looking bit flashy and it catches the visitors eyes. Design is pretty simple and a good user friendly interface.
    https://www.boomsbeat.com/articles/285361/20200205/inventhelp-a-stress-free-way-to-get-assistance-with-your-invention.htm

  9. 53af055a3d403c9cec26f1e165fa7f12?d=mm

    ahsanrajput2021

    Jun 27, 2020 10:53

    I read that Post and got it fine and informative.
    https://eniyipilates.com/aletli-pilates-salonlari/ankara-cayyolu/
    Çayyolu pilates

  10. 53af055a3d403c9cec26f1e165fa7f12?d=mm

    ahsanrajput2021

    Jun 25, 2020 08:01

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.