Now I have two objects, A and B generated by myself. I want to dig a hole in object B, according to the projection of object A.
I mean, like this :
What should I do? Can I do it in C#
?
Thanks for your help.
Now I have two objects, A and B generated by myself. I want to dig a hole in object B, according to the projection of object A.
I mean, like this :
What should I do? Can I do it in C#
?
Thanks for your help.
I guess the way to do it is :
Mesh mesh = this.gameObject.GetComponent<MeshFilter>().mesh;
Vector3[] vertices = mesh.vertices;
Vecotr3.ProjectOnPlane()
Ramer–Douglas–Peucker algorithm
Do you think this is possible?