Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranî)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
in this blender tutorial we are going to
mechanically rig this door using
rotation constraints and a couple other
tricks the end result is this door's
rotation will be locked so it only opens
and closes the way it's supposed to even
if we change the Pivot Point settings
later my name is Brandon let's go Step
One is permanently locking the Pivot
Point using a pivot constraint the first
thing we need to do is make sure this
door's pivot point is always where it's
supposed to be initially we might place
the origin point on the edge of the door
and set the pivot for the scene to
individual Origins that would work until
we change that setting then the door's
rotation would get all messed up we can
fix this door's Pivot Point to another
object in this case I have place a
separate hinge object that I will use I
made sure the hing's origin point is in
the center of its geometry if we didn't
want to do that we could also press
shift a and add an empty object in the
place that we'll want the object's Pivot
Point to be later we will want to parent
these objects to the door frame or to
each other so that they all stay
together next we're going to select the
door and add a pivot constraint
go to the properties panel down here
this is the constraint properties tab we
currently have no constraints on this
door click add object constraint and
choose pivot the pivot constraint will
let us use a Target object as our Pivot
Point click this box and choose the
object that will be our pivot point I'll
choose the top hinge or we can use the
eyedropper to click the object we
want then we'll want to change this
rotation range setting from its default
to be always now if I select the door
and press r to rotate we see the door
always rotates around the target object
it will do this no matter what our Pivot
Point setting is for the overall scam
step two is locking our axis rotations
of course we only want this door to
rotate along the z-axis which runs up
and down to do that we will lock the
rotation of the door on the X and Y AIS
select the door and press in to open the
sidebar menu and in the item tab the
door's rotation settings are shown here
press the lock icon next to the X and Y
axis this locks them now no matter what
we do this door is not allowed to rotate
along those axes and we can only rotate
along the z-axis that is of course
unless we come back later and unlock
them but the next issue we are going to
fix is that a real door won't spin 360°
like this if you haven't already hitting
that like button would mean the world to
me it really really helps thank you so
much step three is to limit the do's
rotation we don't want to lock the do's
rotation on the z-axis like we did the X
and Y but we do want to limit it to a
certain range let's go back to the con
straint properties Tab and we're going
to add a second constraint to this door
choose add object constraint and this
time choose limit rotation with this
constraint we can limit how much an
object can rotate along each axis we
don't need to worry about the X and Y
AIS settings because those are already
locked but let's check the box next to
the z-axis we're going to enter minimum
and maximum angle values for how much
the door can rotate on the axis in the
item tab on the sidebar I see that when
the door is closed its rotation is all
zeros also so as I rotate the door in
the direction I want it to open I see
the rotation values are increasing or
moving in the positive direction so I
know I want to limit the rotation to
zero as a minimum and some larger angle
as a maximum I happen to know I will
want the door to only rotate 120° you
may want to allow it to rotate more or
less depending on what you're doing if
the door's hinge was on the opposite
side or we wanted the door to open the
other direction we would make zero the
maximum value and put a minimum value of
20° instead just depends on whether
you're rotating clockwise or
counterclockwise but in this case Zero
is the minimum and I want the maximum to
be 120° so let's type those into the
limit rotation constraint for the z-axis
this should work but as we have it right
now it won't if we rotate the door it
kind of works but it moves around and
that's not right this is a byproduct of
the order in which these constraints are
placed and all we have to do to fix it
is grab this little icon on the limit
rotation constraint and drag it above
the pivot constraint just like with
modifiers the order of the constraints
is important now let's see how it works
select the door press R to rotate and
look the door will only rotate in the
proper direction and will stop at its
maximum rotation angle I think that's
pretty cool okay I don't know how many
of you caught this but we actually could
have skipped the second step that's
where we locked the rotation in the
sidebar for the X and Y axis we could
have also accomplished this by checking
the X and Y values on the limit rotation
and just leaving the minimum and maximum
values at zero both methods accomplish
the same thing but I wanted to show you
both so that's how we mechanically rig
this door with constraints this method
could be used for a lot of other things
like restricting the movement of robotic
arms or legs in a future video I plan to
show you how to make this little open
and close switch which will control the
door being well open and closed that's
something we're able to do in blender
with a feature called
drivers oh and also I'm going to make
this project file with the toggle button
available to my patreon subscribers
subscribe so you don't miss out on that
or if you're watching in the future look
for that video link below please don't
forget to hit that like button thank you
and stay creative
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.