• 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

jakekarno published

Raycasting in Two Directions

Jul 22, '22 in Help Room

0 Replies

0 Votes

avatar image

Master109 answered

RaycastHit2D How to return angle from one side?

Mar 11, '22 angle·hit·raycasthit2d·physics.raycast

2 Replies

0 Votes

avatar image

junaidy123 published

Why is Physics.Raycast still execute even when the statement doesn't match the if condition

Jan 23, '22 in Help Room

0 Replies

0 Votes

avatar image

mf41z commented

PhysicsRaycaster not working when cursor is locked

Jan 20, '22 in Help Room

0 Replies

0 Votes

avatar image

jbnunn commented

Implementing IPointerClickHandler interface does not seem to work

Dec 5, '21 click·eventsystem·physics.raycast·clickable

7 Replies

7 Votes

avatar image

DearUnityPleaseAddSerializableDictionaries commented

Same RayCast is returning different hit points

Nov 6, '21 hit·points·physics.raycast·different

2 Replies

1 Votes

avatar image

Haobo38 asked

event triggered by the wrong camera

Oct 19, '21 camera·vr·eventsystem·physics.raycast

0 Replies

0 Votes

avatar image

romanm asked

Physics.BoxCast not returning a hit when scale too small

Sep 29, '21 in Help Room

0 Replies

0 Votes

avatar image

Bonfire-Boy commented

Raycast not working as intended

Sep 7, '21 2d·raycast·physics.raycast

1 Reply

0 Votes

avatar image

CycloneWhale commented

Moving one square at the time with velocity

Aug 24, '21 2d·physics2d·physics.raycast

0 Replies

0 Votes

avatar image

jayy9 asked

A line drawn with mouse using Linerenderer is not on exact position. How to fix it?,

Aug 15, '21 linerenderer·physics.raycast

0 Replies

0 Votes

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

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

SDScott_ 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

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

Followers

avatar image

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Related Topics

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


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