- Home /
Ray cast not hitting the backside of mesh collider attached to a spherical mesh object
Hello All, Hi @Eric5h5 @Bunny83 @Flue I am trying to do sculpting on the mesh objects in Unity. I have a Spherical mesh (OBJ file) and I have applied a mesh collider on it. I am casting a ray in the direction of the mesh having the mesh collider on it and the Ray is hitting the collider and deforming the vertices which fall near the hit point of ray cast given a certain radial limit. But the issue I am facing is when I perform the sculpting on one side of sphere and when I rotate it in the Game-view to perform the sculpting on other side the mesh on that side is not getting deformed. I have also drawn the Debug Ray to see whether the ray is hitting that side of collider or not and found that the rays are hitting correctly but the mesh is not getting deformed or the sculpting was not getting done on that side. Attaching some snapshots so that you guys can understand my issue. the first snapshot shows the current result I am getting the second shows the back side of sphere where the rays are hitting but the mesh is not getting deformed.
Your answer
Follow this Question
Related Questions
How do I make my mesh collider more accurate? 1 Answer
moving hole 3 Answers
Find closest point on all objects in a layermask 1 Answer
Raycast stops on a mesh collider on empty parts of the collider. 2 Answers
Dynamically move vertices of a mesh 2 Answers