K
K
Kolibraev2022-01-26 18:06:37
Graphic arts
Kolibraev, 2022-01-26 18:06:37

How to make excellent physics in a 2d game?

I have been amazed by a game called Rain World for a long time. I really liked my physics and neural networks in AI.

If everything is clear with AI, then how was such physics and dynamics achieved in graphics?
Drawing a static ball and giving it the ability to fall is a primitive and understandable manifestation of physics in the game, but in addition to this, Rain World also made realistic bending of some objects, their fall with a curvature of the shape, and everything else. It uses procedural animation, but I may be wrong. If someone knows how this is implemented specifically, please share it (even your guesses)

What specifically I do not understand is what was demonstrated in this video:
https://www.youtube.com/watch?v=sVntwsrjNe4&ab_cha ...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vasily Bannikov, 2022-01-26
@vabka

I don't know exactly what the physics looks like in this game.
But from the assumptions:
1. Water can be made using particle physics and a shader (as I heard) ( https://www.youtube.com/watch?v=_8v4DRhHu2g )
2. Bending of objects can be foreseen in advance - the collision speed and mass are known , so that from them it is possible to calculate how the object should be deformed.
3.1. Falling with a change in shape - ordinary ragdolls (mb still procedural animation, when the influence of external forces is added to the usual animation). That is, each part of the body is also given a mass, "friction" between these parts, restrictions on movement, "strength of muscles", "strength of ligaments" - this can also be used to make a realistic fall of the body.
3.2. The physical behavior of any slimy creatures:https://habr.com/ru/post/540274/

A
Anton Shamanov, 2022-01-27
@SilenceOfWinter

Use UnrealEngine or Unity3d.
Basic Skeletal Animation https://docs.unrealengine.com/4.27/en-US/Animating...
Object Physics https://docs.unrealengine.com/4.27/en-US/Basics/Co...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question