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

    Aug 23, 2020 12:31

    The information you have posted is very useful. The sites you have referred was good. Thanks for sharing.
    viên ngậm tengsu https://www.arubastudy.org/vien-ngam-tengsu/

  2. naveedshaikh358

    Aug 23, 2020 12:29

    Wow what a Great Information about World Day its very nice informative post. thanks for the post.
    https://www.birthdaycards-images.com/
    Happy Birthday Cards Images

  3. rajputyahya51_unity

    Aug 20, 2020 13:50

    The information you have posted is very useful. The sites you have referred was good. Thanks for sharing...
    on demand delivery https://www.marketwatch.com/story/square-enables-retailer-customers-to-offer-on-demand-deliveries-via-courier-2020-06-24

  4. pyjehefy

    Aug 15, 2020 14:40

    All the contents you mentioned in post is too good and can be very useful. I will keep it in mind, thanks for sharing the information keep updating, looking forward for more posts.Thanks
    Wet Umbrella Wrapping Machines Buy Now http://mcdonaldauto.ning.com/profiles/blogs/pallet-wrapping-machine-why-the-rotary-tower-method-is-regarded

  5. rajputyahya51_unity

    Aug 12, 2020 15:10

    The website is looking bit flashy and it catches the visitors eyes. Design is pretty simple and a good user friendly interface.
    Polycom Video Conferencing https://pabxsystemoman.com/video-conferencing-systems-muscat/

  6. beriberis

    Aug 11, 2020 14:26

    Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic.
    출장마사지 http://chungcheonganma.com/

  7. pyjehefy

    Aug 11, 2020 09:59

    I just found this blog and have high hopes for it to continue. Keep up the great work, its hard to find good ones. I have added to my favorites. Thank You.
    voyance gratuite par telephone https://voyance-retour-amour.com

  8. pyjehefy

    Aug 10, 2020 11:34

    I am very happy to discover your post as it will become on top in my collection of favorite blogs to visit.
    freelancers for hire any job https://www.slideshare.net/TimClow1/how-hiring-freelancers-can-boost-the-longterm-success-of-your-business

  9. rajputyahya51_unity

    Aug 09, 2020 11:47

    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.
    trường xuân vương bán ở đâu https://chuyensuckhoesacdep.com/truong-xuan-vuong/

  10. rajputyahya51_unity

    Aug 09, 2020 08:13

    The information you have posted is very useful. The sites you have referred was good. Thanks for sharing..
    tengsu mua ở đâu https://chuyensuckhoesacdep.com/tengsu/

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.