In this lecture we are going to discuss about grouping so how we can group the different different materials
or different different meshes with each of them.
Right?
So in last lecture we have seen that if I want to rotate this whole plane and the cubes with together,
I'm unable to do that.
Right.
Let me show you again.
Let's suppose if I just started doing this thing.
If I start rotating this things, what is going to happen?
Right that.
We have seen that plane is rotating on its own axis and that blue box is rotating on its own axis right
now.
What we have to do is we have to rotate this cubes and plane together.
So how would we do it will be possible.
So for that, there is a concept of making groups.
Sometimes what we need to do is we need we have some different different materials or mesh.
And we have to mix or we have to group them to create one.
One we can say of one entity.
Suppose if you have to create a house, how would you go?
How would you going to create that house?
So it's the easiest way is just you create a floor and then you just create four walls and after that
you create that roof, right?
When you create all these things, the next step is that what you have to?
Make it make those walls, floors and the top roof as a part of fun, right?
You have to bind them together.
So how would you how would how would you are going to do that?
Right.
So it's for that we have group concept in three days.
So here what we have to do is we just need to do this line of goods, right?
What are these?
Let me show you.
First let me uncovered all those things and then I will discuss.
So.
Right now, what we have to do is I have just laid out all the measures, what we have created.
Right.
Which we have aided to oversee.
That's why we are able to see those things.
Now what we have to do is just provide us a class, which is a three dot group.
Look at this group.
Class is used to create group.
So for that, what you have to do is you have to write.
You have to create a variable in which you have to create an object using new keyword and here new keyword.
And you have to use group class, which is available in our previous model.
Right.
And then what you have to do is you have to add all your meshes to this group.
So when you add this group meshes all your meshes, which is playing, you get Cube and then that blue
group or blue cube, right?
So once you group them all, then what is going to happen?
You have to group them all and then after that you have to put this group into your seed and how we
are going to do that with writing scene dot.
ED Right.
So after that, what is going to happen?
You can see that.
Right now.
All the elements, all all the measures are in the sea.
Right.
But how we are going to take this thing.
So just suppose if I have to rotate this thing, if I write the word dot rotation, dot x and its value
is like this 0.01.
Now you can see this whole figures, like where all the measures are combined together and they were
rotating, right.
And for this particular thing, the axis for this cube is also becomes this origin.
So it's become a whole entity, Right.
So in next lecture, we are going to learn how we can create a house.
And then after that, we are going to learn about different different materials which are present in
three years.
So till then, take care and have a nice day.