Unity Using A Plane To Make A Roof
As mentioned earlier unity offers several types of vehicles including a car and an aircraft.
Unity using a plane to make a roof. This tutorial has two sections in the first we will be building a simple low poly car. Public class objectmask. I created the roof structure using a beam system along a ref. Or use roof by extrusion.
Unity is the ultimate game development platform. If you make one by foot print just go to side elevation or cut section through rake select roof then use move tool to locate. The problem with this is that everytime i resize the plane or size of my game object i have to retouch the tiling property of the material. Last week we looked into how to add and drive a car using unity s built in vehicle assets and i hope this was fun this week we resume the addition of vehicles by adding and piloting an aircraft.
Monobehaviour public transform plane. Make each pair of triangles that make up one rectangle overlap in the uv map. Plane i thought i would be able to model the roof metal deck and rigid insulation on top of this but neither the roof or floor tool is set up to use reference planes and the slope arrow and level offest method is a bit hit and miss. In your case you can check whether an object is on either side of the plane by using a dot product between the normal of the plane and the direction of the plane from the object i e.
Innormal must be a normalized vector. I am using textures and materials to tile my sprites for instance when building a wall in my game. In the second section we will be utilizing something called bezier curves to make a race track. In order to have your texture tile seamlessly across the plane using the overlapping uv technique there are two things to take into account.
Note this means a positive value for distance results in the plane facing towards the origin. A negative distance value results in the plane facing away from the origin. Make a procedural plane mesh that adapts the number segments depending on the proportion of the texture. 1 create another named ref plane in plan view so as to draw the roof profile roughly at end of roof image 1.
The distance is measured from the plane to the origin along the plane s normal. Use unity to build high quality 3d and 2d games deploy them across mobile desktop vr ar consoles or the web and connect with loyal and enthusiastic players and customers. This method is worth learning so when plane moves everything goes with it.