D
D
Dmitry Belousov2019-06-30 01:18:01
C++ / C#
Dmitry Belousov, 2019-06-30 01:18:01

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.
5d17e38b5d8e0114887317.png

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexander Pushkarev, 2017-09-06
@AXP-dev

Via https://masonry.desandro.com/ or any other equivalents

A
Astrohas, 2017-09-06
@Astrohas

Four divblocks with a width of 25% inside which are subblocks.

.magic-wrapper{

display: flex;
}
.magic{
width: 25%;
 padding-left: 3px;
 padding-right: 3px;
}

Proof
Else Tables
Else Masonry

M
Marty McFly, 2017-09-06
@alex_shevch

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.

C
cssfish, 2017-09-06
@cssfish

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 question

Ask a Question

731 491 924 answers to any question