February 10 2020amirul muncategorized.
Unity using a plane to make a roof.
Unity using a plane to make a roof.
Here is my code to add a plane in unity but the problem is the octopus jpg seems like not to work.
Is a point on the positive side of the plane.
Returns a signed distance from plane to point.
Don t completely cover the room though.
To create a roof make another cube and place it above the walls.
Gameobject 3d object plane.
Now i want to place a image on this grid so that user cant see the grid i have made and i ll have access of all points of the image using grid.
Create a plane rotating it to face forward as necessary r x 9key 0key enter to align it with the front wall of the house.
Scale the plane down by 7 and then again by 5 along the x axis.
Intersects a ray with the plane.
Makes the plane face in the opposite direction.
Position it so it s below the walls.
Change the object name to door.
Are two points on the same side of the plane.
Leave a gap so you can still see into the room and to create an interesting light effect.
Move it into position using front view and then move it against the wall of the house in side view.
My plane gameobject createprimitive primitivetype plane.
The problem is i am unable to place image on it it shows me grid that i made before.
If i grab the bottom of the 1st object and moved it to the bottom of the 2nd they are at the same plane.
Adding a triangular roof object and rotating that to the proper orientation is performed using the same procedure but now both objects are aligned to the same base plane.