- Home /
Question by
celikmurat · Jul 16, 2015 at 10:19 AM ·
2d physics
How can I detect the texture coordinate of the collided object with Physics2D ?
I know that to get the texture coordinate of collided object I have to use 3D Physics of Unity. If object does not have a mesh collider, it is not possible to get texture coordinate with raycasting. Anyone knows how to calculate the texture coordinate of the collided object's contact point with Unity2D components?
Comment
Is the object using a SpriteRenderer or a $$anonymous$$eshRenderer?
In that case, you'll have to calculate it manually based on the contact points and the position+scale of the sprite.
Your answer
Follow this Question
Related Questions
2D Physics, cannot pass -10 (y-axis) 1 Answer
2D Car problem with motor 0 Answers
Merge 2D Tilemap Collider into Single Unit 0 Answers