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

    Apr 22, 2020 13:25

    Thanks for your information, it was really very helpfull..
    car locksmith Kent
    http://www.birkenstocks.name/a-24-hour-locksmith-service-is-noble/

  2. ahsanalirajput079

    Apr 22, 2020 12:39

    Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!..
    https://www.blackplanet.com/stougaard49stougaard/message/20991320
    garage doors Orem UT

  3. naveedshaikh358

    Apr 22, 2020 10:26

    This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information...
    auto locksmith Ogden
    http://stokesstokes9.iktogo.com/post/confident-you-may-be-shut-from-your-car-or-residence-but-what-about-your-boat-or-bungalow-do-you-kno

  4. ahsanalirajput079

    Apr 22, 2020 08:51

    Thanks for sharing the info, keep up the good work going.... I really enjoyed exploring your site. good resource...
    http://levitra.college/how-to-maintain-a-garage-door/
    garage doors Lehi

  5. ahsanalirajput079

    Apr 21, 2020 15:34

    Nice post! This is a very nice blog that I will definitively come back to more times this year! Thanks for informative post.
    https://www.cherada.net/opus/comentarios-para-twitter-tweets
    comprar comentarios de twitter

  6. naveedshaikh358

    Apr 21, 2020 11:54

    Thanks so much for sharing this awesome info! I am looking forward to see more postsby you!
    O'Neill's Green Services
    https://renewfinancial.com/contractor/oneills-green-services-inc

  7. johndd110

    Apr 19, 2020 17:47

    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.
    sanskritijewelsbygeetika.com http://sanskritijewelsbygeetika.com/

  8. ahsanalirajput079

    Apr 19, 2020 14:48

    I really thank you for the valuable info on this great subject and look forward to more great posts. Thanks a lot for enjoying this beauty article with me. I am appreciating it very much! Looking forward to another great article. Good luck to the author! All the best!
    https://www.canadapardongroup.com/
    pardons in canada

  9. ahsanalirajput079

    Apr 19, 2020 07:43

    Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic.
    https://cashforscrapcarsautoremovallangley.ca/coquitlam-car-removal
    scrap car pick up coquitlam

  10. ahsanalirajput079

    Apr 16, 2020 16:40

    Really a great addition. I have read this marvelous post. Thanks for sharing information about it. I really like that. Thanks so lot for your convene.
    http://agrifablawnsweeper.over-blog.com/2020/04/what-will-a-lawn-sweeper-pick-up.html
    best lawn sweepers reviews

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.