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

    May 06, 2020 12:37

    Wonderful blog! I found it while surfing around on Yahoo News. Do you have any suggestions on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to get there! Appreciate it.
    Can You Shrink Hemorrhoids At Home With Vaseline
    https://canvas.instructure.com/eportfolios/96057/Home/Super_Easy_Way_To_Use_Vaseline_For_Hemorrhoids_

  2. ahsanrajput2021

    May 06, 2020 08:58

    Good post but I was wondering if you could write a litte more on this subject? I’d be very thankful if you could elaborate a little bit further. Appreciate it!
    surrey psychic
    http://www.psychicjayde.ca/

  3. ahsanalirajput079

    May 05, 2020 21:06

    Thanks for sharing this quality information with us. I really enjoyed reading. Will surely going to share this URL with my friends.
    https://medium.com/@m.mahamhsin/option-trading-tips-31ef0d0bde1f?postPublishedType=initial
    option trading tips

  4. ahsanalirajput079

    May 05, 2020 11:14

    I think that thanks for the valuabe information and insights you have so provided here.
    https://www.rdg-law.co.uk/important-facts-burial-insurance-for-seniors/
    burial insurance for seniors

  5. naveedshaikh358

    May 04, 2020 12:52

    Thank you again for all the knowledge you distribute,Good post. I was very interested in the article, it's quite inspiring I should admit. I like visiting you site since I always come across interesting articles like this one.Great Job, I greatly appreciate that.Do Keep sharing! Regards,
    funeral insurance
    http://www.afcinstitute.com/understanding-the-value-of-funeral-insurance/

  6. naveedshaikh358

    May 04, 2020 12:09

    This is highly informatics, crisp and clear. I think that everything has been described in systematic manner so that reader could get maximum information and learn many things.
    Online chess training
    https://www.seedandspark.com/user/online-chess-training

  7. beriberis

    May 04, 2020 10:42

    It proved to be Very helpful to me and I am sure to all the commentators here!
    Microsoft Dynamics 365 Business Collections https://isolutionspayments.com/cre...business-central'

  8. ahsanalirajput079

    May 04, 2020 06:39

    Thanks for taking the time to discuss this, I feel strongly that love and read more on this topic. If possible, such as gain knowledge, would you mind updating your blog with additional information? It is very useful for me.
    Florida gay divorce
    http://www.tiger66skor.info/florida-gay-divorce/

  9. ahsanalirajput079

    May 03, 2020 16:46

    I think that thanks for the valuabe information and insights you have so provided here.
    http://www.afap.us/tree-removal-services-near-minneapolis/
    tree removal services near Minneapolis

  10. ahsanalirajput079

    May 03, 2020 13:24

    This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post.
    https://www.julesbooks.com
    San Diego Bookkeeping

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.