The Door Project Game: Cable Collision With Interactive Actors

Published: 29 December 2021
on channel: 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.


Watch video The Door Project Game: Cable Collision With Interactive Actors online without registration, duration hours minute second in high quality. This video was added by user The Door Project 29 December 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 282 once and liked it 7 people.