The Door Project Game: Cable Collision With Interactive Actors

Опубликовано: 29 Декабрь 2021
на канале: The Door Project
282
7

Improvement of the cable component physics to handle collision with objects and specifically movable actors (see last part for debug view):
0:00 Use the physics simulation of cable component plugin of Unreal.
0:03 At any moment, detect collision between a particle of the cable component and the n+2 one.
0:06 When in collision, I "fix" the particle n+1, cable component physics no longer applies on those points.
0:09 If particle is fixed on a movable actor, I keep the relative position (transform the vector position in the collider reference).
0:14 If collider moves, the particle will keep the same relative offset to follow it.
0:26- Collision detection is enlarged to be sure the other particles' movement don't mess up with the particles order and become stuck in the moving collider.
0:35 The particles are freed when they no longer detect collision.
0:49 Debug view: red spheres are "fixed" particles ignored by cable physics and that also follow movable actors.


Смотрите видео The Door Project Game: Cable Collision With Interactive Actors онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь The Door Project 29 Декабрь 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 282 раз и оно понравилось 7 людям.