This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
2
Problem with a 2d raycast collision
Post Body
I have this small issue with a 2d raycast detection code in which the gameobject doesn't stop where it is intended to stop based on the raycast. I tried googling and read the documentation, used Rigidbody2D.Cast() as an alternative but I ended up with the same results.
Link to the original code:
Raycast Collision Detection Code
Start of the game:
After drag and drop of the first box:
After drag and drop of the second box:
Author
Account Strength
80%
Account Age
8 years
Verified Email
Yes
Verified Flair
No
Total Karma
102
Link Karma
70
Comment Karma
32
Profile updated: 2 days ago
Posts updated: 5 days ago
Subreddit
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 5 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/Unity2D/com...