• Unity
  • Services
  • Made with Unity
  • Learn
  • 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
  • Forums
  • Answers
  • Feedback
  • Issue Tracker
  • Blog
  • Evangelists
  • User Groups

Navigation

  • Home
  • Unity
  • Industries
  • Made with Unity
  • Learn
  • Community
    • Forums
    • Answers
    • Feedback
    • Issue Tracker
    • Blog
    • Evangelists
    • User Groups
  • Get Unity
  • Asset Store

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

Physics2d.raycast

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

hsnk asked

Calculating distance between meshes

3 days ago in Help Room

0 Replies

0 Votes

avatar image

Insprata edited

Small overlap in ColliderDistance2D after moving collider to RaycastHit2D.centroid

Dec 3, '18 physics2d·collision detection·physics2d.raycast

0 Replies

0 Votes

avatar image

unity_szuBm7Q_m1sWyw edited

Odd behavior when circle collider is supposed to bounce off wall

Nov 20, '18 movement·physics2d·rigidbody.velocity·bouncing·physics2d.raycast

1 Reply

0 Votes

avatar image

ChrisIsAwesome commented

2D Raycasting For Ground/Ceiling Checks

Oct 24, '18 physics2d.raycast

1 Reply

0 Votes

avatar image

JetpackJoker asked

Physics2d.Raycast always returning 0,0

Sep 21, '18 in Help Room

0 Replies

0 Votes

avatar image

jamesatighe edited

Raycast2D Help

Jul 3, '18 raycasthit2d·physics2d.raycast

1 Reply

0 Votes

avatar image

SirSmileX asked

RaycastHit2D does not work?

Jun 24, '18 c#·physics2d.raycast

0 Replies

0 Votes

avatar image

Tsilliev answered

Raycast2D is hitting itself even when set to ignore own collider

Mar 19, '18 in Help Room

3 Replies

0 Votes

avatar image

jsabandal1 asked

Physics2D.Raycast not working,My Physics2D.Raycast is not working.

Nov 25, '17 physics2d·physics.raycast·physics2d.raycast

0 Replies

0 Votes

avatar image

Denscrivent edited

Raycast2D Hit Other Object

Sep 7, '17 collider2d·spriterenderer·physics2d.raycast

1 Reply

0 Votes

avatar image

hexagonius commented

RaycastAll2D Not Working at Distance from (0,0)

Jun 29, '17 edge·raycastall·physics2d.raycast

0 Replies

0 Votes

avatar image

GarbagePile asked

2D Raycasts Only Work in Certain Directions

Jun 20, '17 physics2d·collider2d·transform.position·vector2·physics2d.raycast

0 Replies

0 Votes

avatar image

NVriezen asked

Raycast to target only works in two directions, but I need four.

Jun 16, '17 in Help Room

0 Replies

0 Votes

avatar image

SmackDan commented

Raycast(Physics2D) won't hit an Edge Collider unless I remove the attached Rigidbody2D

May 26, '17 in Help Room

1 Reply

1 Votes

avatar image

jpedretti published

Use full kinamatic contacts don't work with Physics2D.Raycast Unity 5.5

Jan 21, '17 rigidbody2d·kinematic·physics2d.raycast

0 Replies

1 Votes

avatar image

doublemax commented

Raycast2D not working with LayerMask

Sep 8, '16 physics2d·raycasthit2d·layermask·physics2d.raycast

1 Reply

2 Votes

avatar image

grimmdeveloper answered

I am Making Bubble Shotter game in which bubbles get blast when 3 same colors get to gather . How can i detect neighbouring objects?

Jun 18, '16 in Help Room

1 Reply

0 Votes

avatar image

Lazybones94 asked

Strange Physics2D.Raycast behaviour

May 30, '16 in Help Room

0 Replies

0 Votes

avatar image

Bioinformatizer answered

Raycasting not working on all sides? Closed

Feb 9, '16 2d·raycasting·polygon collider 2d·physics2d.raycast

1 Reply

0 Votes

avatar image

RustyCrow commented

Physics2D.Raycast producing bizarre results.

Oct 21, '15 in Help Room

0 Replies

0 Votes

avatar image

gumboots answered

Find the Opposite Side of a CircleCollider2D

Sep 3, '15 physics2d·maths·physics2d.raycast·circles

1 Reply

0 Votes

avatar image

IceBeamGames published

Physics2D.Raycast intermittently returning null

May 21, '15 c#·raycasthit2d·ontriggerstay·physics2d.raycast

1 Reply

0 Votes

avatar image

shopguy commented

Is Physics2D.raycastsStartInColliders new?

Mar 5, '15 physics2d·physics2d.raycast

0 Replies

0 Votes

avatar image

PinkMustard edited

Physics2D.Raycast not detecting collider

Mar 3, '15 physics2d.raycast

2 Replies

0 Votes

avatar image

DRProductions commented

Can't find the null reference

Jul 21, '14 raycast·nullreferenceexception·physics2d·physics2d.raycast

1 Reply

0 Votes

avatar image

mealone published

physics2d.raycastall help please

May 27, '14 raycast·collider·combo·physics2d.raycast

1 Reply

0 Votes

avatar image

AngryCSharpNerd commented

Raycasting and Triggers Issue

May 19, '14 raycast·trigger·onmousedown·physics2d.raycast·onmouse

1 Reply

0 Votes

avatar image

robertbu commented

Physics2D.Linecast and Physics2D.Raycast don't seem to return null

May 7, '14 nullreferenceexception·physics2d·physics2d.raycast

1 Reply

0 Votes

avatar image

xt-xylophone answered

How do I get characters to interact with each other?

Apr 3, '14 gameobject·physics2d.raycast

1 Reply

0 Votes

avatar image

Patel-Sagar answered

Why does Physics2D.Raycast alway return true?

Mar 26, '14 physics2d.raycast·return type

1 Reply

0 Votes

  • 1
  • 2
  • ›

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.



相关主题

physics2d raycasthit2d raycast collider2d physics c# collision detection 2d nullreferenceexception layermask colider rigidbody2d edge transform.position bouncing maths vector2 return type 2d-platformer circles hit raycastall gameobject enemy ai raycasting
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges