From the course: Unity: AR Visualization 02 Basic Interactivity

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Doing the math! The slide formula

Doing the math! The slide formula - Unity Tutorial

From the course: Unity: AR Visualization 02 Basic Interactivity

Start my 1-month free trial

Doing the math! The slide formula

- All right, it's time to start working with our planes. So we're going to first create a plane, we're going to use our axis plane, and we use the method called, "Set Three Points", this is going to allow us to construct a plane that intersects with all three of these points. At the first point we want to intersect with, is the center of the axis. All right, the second point I want to interact with, is a point on the axis that we're actually going to move on. And so we're going to move one unit on that axis, we're going to take the same position, plus select the part, that axis, got one unit, in the forward direction. And lastly, we're going to take our center point of our axis and add one unit in the direction of the cameras up. This is the Session origin, Camera.Transform.Up. So what this allows us to do is create a plane, that is aligned to the axis we want to move on but is also trying to look at the camera at the same time.…

Contents