- Home /
Make a hole in object?
Hello Every One,
I have trying to to this function which is, i have one one plane in the scene using mouse when i click on the plane clicked place should be changed to hole if i keep something on that place it should be go inside that hole. Please help me to do this.
$$anonymous$$odifying the mesh at runtime seems pretty hard to me. It probably involves taking out a triangle from the mesh or something.
Answer by Freezy · Jun 27, 2012 at 09:13 AM
you could use a projector to project the hole, use a render texture with a camera if you need a realistic view of the other side.
http://unity3d.com/support/documentation/Components/class-Projector.html
then you could add a raycast from the projector to test for objects (sphere raycast)
Your answer

Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Change scene using Colliders 1 Answer
Weird collision error when using waypoint script... 1 Answer
Movement around a huge object by avoiding obstacles 1 Answer
Optimizing colliders for a third person character action/action RPG game 1 Answer