Answer the question
In order to leave comments, you need to log in
How to make a character freeze while holding onto something?
I use rays to determine whether an object is located or not. So I need to make the character hang, holding on to this object. But I don’t understand how to do this, if I turn on physics, then it falls, I can’t fix my hands. An example is in the photo.
Answer the question
In order to leave comments, you need to log in
Via https://masonry.desandro.com/ or any other equivalents
Four divblocks with a width of 25% inside which are subblocks.
.magic-wrapper{
display: flex;
}
.magic{
width: 25%;
padding-left: 3px;
padding-right: 3px;
}
There is an excellent article on Habré about flexboxes - Working with Flexbox in GIFs
On flexboxes, you can make any grid in a few lines, and also adaptively.
The question is not how to do it, but how it should behave. if it’s just like in the picture, and it doesn’t change when changing pictures, then you can even stupidly add absolute-blocks in % and cover them. Or cram blocks with fix. aspect ratio and arrange them in 4 columns. And so on, what was listed here ...
But if something needs to change in dynamics, then masonry is possible ...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question