• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges

Physics.raycast

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

mk4014104 edited

physics Raycasting having issues

Mar 5, '21 transform.position·physics.raycast

0 Replies

0 Votes

avatar image

Mercuri commented

GetComponent() failing for enemy colliders from OverlapSphereNonAlloc array, but working fine from Raycast output

Jan 10, '21 getcomponent·physics.raycast·physics.overlapsphere

2 Replies

0 Votes

avatar image

beyonddoor commented

Implementing IPointerClickHandler interface does not seem to work

Jan 7, '21 click·eventsystem·physics.raycast·clickable

7 Replies

6 Votes

avatar image

urgrandma published

I need to know how to spawn a prefab and then have it propelled forward as if thrown

Nov 2, '20 in Help Room

0 Replies

0 Votes

avatar image

moonmauler published

Adding A rigidbody to an object prevents it from being detected by a raycast unless the rigidbody is kinematic.

Oct 26, '20 in Help Room

0 Replies

0 Votes

avatar image

GilJoWal published

BoxCast does not work at Runtime, but in Game Mode (sometime strange results...)

Oct 19, '20 c#·physics·physics.raycast

0 Replies

0 Votes

avatar image

unitedone3D asked

Raycast/collision driving me insane - (never works correctly, any idea?)

Oct 16, '20 physics.raycast

0 Replies

0 Votes

avatar image

keyur17 published

Make only visible portion of image clickable Closed

Oct 15, '20 in Help Room

0 Replies

1 Votes

avatar image

Game1324 published

Raycasting only works when close to an object

Oct 12, '20 scripting problem·physics.raycast

0 Replies

0 Votes

avatar image

daniel14657 commented

Player doesn't detect ground by using Raycast

Sep 27, '20 physics.raycast

1 Reply

0 Votes

avatar image

ShawnDScott100 answered

Maintain object position when using raycasting to multiple height

Sep 18, '20 physics·raycast·transform·transform.position·physics.raycast

2 Replies

0 Votes

avatar image

hyperadox published

Mixing OverlapSphere and raycast physics to filter list

Aug 26, '20 physics.raycast·linq·physics.overlapsphere

0 Replies

0 Votes

avatar image

RedGirafeGames commented

raycast not hittig anything but charecter

Jul 8, '20 in Help Room

0 Replies

0 Votes

avatar image

a-ivanov answered

Raycast hit in OnDrawGizmos but not in Update

Jul 7, '20 raycast·raycasting·raycasthit·physics.raycast

1 Reply

0 Votes

avatar image

LunaD03 commented

Raycasts in opposite directions only returning RaycastHits on right

Jun 27, '20 physics·vector3·raycasthit·physics.raycast

1 Reply

0 Votes

avatar image

ProNoob2 asked

Calculate Texture Painting Percentage

Jun 23, '20 material·rendertexture·material color·physics.raycast·getpixels

0 Replies

2 Votes

avatar image

Nemuriciu published

Click event on GameObject to open GUI also fires a click event on the GUI

Jun 12, '20 ui·raycast·event triggering·physics.raycast

0 Replies

0 Votes

avatar image

louis_h asked

One EventSystem for 'physical' objects and one for UI ?

Jun 9, '20 ui·layers·eventsystem·selection·physics.raycast

0 Replies

0 Votes

avatar image

viesc123 edited

How to lock a vehicle to a curve normal in two dimensions?

May 29, '20 vector3·physics.raycast

1 Reply

0 Votes

avatar image

rahulmahtolia edited

How to improve the efficiency of ray casting ray detecting collision?

May 13, '20 raycasting·raycasthit·ray·physics.raycast

0 Replies

0 Votes

avatar image

courtesy commented

NullReferenceException with Physics2D raycast

May 13, '20 physics.raycast

2 Replies

0 Votes

avatar image

LeBanc asked

Raycasting ray go through object with gravity enabled

Apr 15, '20 rigidbody·gravity·physics.raycast

0 Replies

0 Votes

avatar image

streeetwalker edited

Auto-generate optimal direction for Raycast with specifications

Apr 8, '20 in Help Room

1 Reply

0 Votes

avatar image

TheSwiftStrike answered

Raycast Only Hits an Object if the Previous Raycast hits the Object Closed

Mar 19, '20 scripting problem·physics.raycast

1 Reply

0 Votes

avatar image

scribblenaughts commented

Crosshair Distance Indicator

Jan 8, '20 crosshair·physics.raycast·distance check·hook

1 Reply

0 Votes

avatar image

ksewo asked

CharacterController bounce on ramp instead of smooth walk

Sep 14, '19 in Help Room

0 Replies

1 Votes

avatar image

himanshugupta159 answered

transform.forward not pointing to the blue axis with raycast

Aug 21, '19 in Help Room

1 Reply

0 Votes

avatar image

siddharth3322 asked

Slant Physics Raycast Implementation

Aug 8, '19 physics·raycast·collider·detection·physics.raycast

0 Replies

0 Votes

avatar image

ADiSiN edited

How is Physics.Raycast works

Jul 12, '19 physics.raycast

1 Reply

0 Votes

avatar image

AlexDonaldArcher commented

Is there a way to use Physics.Raycast accurately while time.timescale is set to zero?

May 6, '19 c#·timescale·physics.raycast

1 Reply

0 Votes

  • 1
  • 2
  • 3
  • 4
  • 5
  • ›

Followers

avatar image

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Related Topics

raycast physics c# raycasting raycasthit collider scripting problem vector3 collision ray layermask physics2d collision detection rigidbody distance hit detection transform.position javascript camera 2d game hit detection collider.raycast unity 5 layers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges