Could someone explain to me how Collider2D.cast() works?, how to use it?
For days I've been trying to make Collider2D.Cast() work but it doesn't work at all, it doesn't detect any collisions. I'll leave a screenshot of my code for anyone who can explain to me why it doesn't work... Could someone explain to me how to use it? I left an image of my script for anyone who wants to see and help me.
and yes, it should return false...
PlayerDir() is a function to detect which side the player is looking at (Ex: Player is looking right, so Player Dir() returns Vector3.right.
Your answer
Follow this Question
Related Questions
2D colliders doesnt work with Gravity Scale = 0 0 Answers
C# 2D Top down game how to detect if objects are touching while they can pass through each other? 1 Answer
Object Colliding while passing along another object . 0 Answers
Program says 2 BoxCollider2Ds are colliding, but they are not 0 Answers
OnCollisionEnter2D not calling, but objects are colliding. 1 Answer