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

    Jul 20, 2020 07:09

    Wonderful article, thanks for putting this together! This is obviously one great post. Thanks for the valuable information and insights you have so provided here.
    https://www.dynamitestudioinc.com/
    professional business photographer

  2. pyjehefy

    Jul 19, 2020 12:12

    You know your projects stand out of the herd. There is something special about them. It seems to me all of them are really brilliant!
    mdma purity test kit http://mcdonaldauto.ning.com/profiles/blogs/common-drug-testing-methods

  3. naveedshaikh358

    Jul 19, 2020 11:10

    Some truly wonderful work on behalf of the owner of this internet site , perfectly great articles .digital marketing orlando
    https://www.c4social.com/

  4. naveedshaikh358

    Jul 19, 2020 07:18

    Thanks for sharing this useful info..
    https://good-morning.hothungama.com/
    Good Morning Quotes

  5. maribansari174

    Jul 18, 2020 10:00

    Thanks for this great post, i find it very interesting and very well thought out and put together. I look forward to reading your work in the future.
    birthday wishes
    https://www.happybirthdaywishes-images.com/

  6. ahsanrajput2021

    Jul 18, 2020 07:48

    Thank you very much for keep this information.
    https://happyanniversary-wishes.com/wedding-anniversary-wishes/
    marriage anniversary quote

  7. naveedshaikh358

    Jul 18, 2020 07:39

    You have a good point here!I totally agree with what you have said!!Thanks for sharing your views...hope more people will read this article!!!
    https://happybirthdaywishesfriend.com/
    birthday wishes to friend

  8. adsssssgooogle2021

    Jul 17, 2020 20:43

    <a href="http://allcryptocurrenciesnow.com/?s=Together%2C+we+can+have+a+better+life">Together, we can have a better life </a></p>

    Greetings and my appreciation to you, dear dear, I love you so much. <a href="http://allcryptocurrenciesnaw.com/?s=How+and+her+fungal+obesity+products">How and her fungal obesity products </a></p>

    The dear becomes a beautiful greeting and gratitude to you. <a href="http://bitcoin-for-everyone.com/?s=We+must+work+together+to+find+many+solutions">We must work together to find many solutions </a></p>

    http://allcryptocurrenciesnow.com/?s=Together%2C+we+can+have+a+better+life

    Thank you very much for your effort with greetings from. <a href="http://bitcoin-for-everyone.com/bitcoin-billionaire-kjell-inge-rokke/">Bitcoin Billionaire Kjell Inge Røkke</a></p>

    This is a wonderful greetings to you. <a href="http://allcryptocurrenciesnaw.com/kjell-inge-rokke-bitcoin-billionaire/">Kjell Inge Røkke Bitcoin Billionaire</a></p>

    Thanks for your effort and regards. <a href="http://allcryptocurrenciesnaw.com/gunther-jauch-bitcoin-trader/">Günther Jauch Bitcoin Trader</a></p>

    Good job, my regards to you, my friend. <a href="http://bitcoin-for-everyone.com/bitcoin-trader-gunther-jauch/">Bitcoin Trader Günther Jauch</a></p>

    We wish you success, always and forever. <a href="http://allcryptocurrenciesnaw.com/malgorzata-kozuchowska-smartest-investor/">Małgorzata Kożuchowska Smartest Investor</a></p>

    We wish you success, always and forever. <a href="http://bitcoin-for-everyone.com/smartest-investor/">Smartest Investor Małgorzata Kożuchowska</a></p>

    Great job, I want to accept your head with greetings. <a href="http://allcryptocurrenciesnaw.com/anwar-ibrahim-bitcoin-storm-ulasan/">Anwar Ibrahim Bitcoin Storm</a></p>

    Great job, I want to accept your head with greetings. <a href="http://allcryptocurrenciesnaw.com/anwar-ibrahim-bitcoin-storm-ulasan/">Bitcoin Storm Anwar Ibrahim </a></p>

  9. ahsanrajput2021

    Jul 16, 2020 08:43

    Thank you for taking the time to publish this information very useful!
    https://www.happybirthdaygreetingcards.com/happy-birthday-teacher-wishes/
    Happy Birthday Teacher

  10. naveedshaikh358

    Jul 16, 2020 07:49

    This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value. Im glad to have found this post as its such an interesting one! I am always on the lookout for quality posts and articles so i suppose im lucky to have found this! I hope you will be adding more in the future...
    https://birthdaywishes100.com/happy-birthday-uncle-images-pictures/
    happy birthday uncle

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.