How to detect and collide two elastic line segments?
Posted
by
Tautrimas
on Game Development
See other posts from Game Development
or by Tautrimas
Published on 2011-01-20T23:45:38Z
Indexed on
2011/03/07
0:18 UTC
Read the original article
Hit count: 213
There are 4 moving physical nodes in 3D space. They are paired with two elastic line segments / strings (1 <-> 2; 3 <-> 4).
Part I: How to detect the collision of two segments?
Part II: On the moment of collision, fifth node is created at the intersection point and here you have the force-based graph. 5-th node (bend point) can slide among the strings as in a real world. Given the new coordinates of 4 nodes, how to calculate the position of the 5-th node on the next frame? I assume string force on the nodes to be F = -k * x
where x is the string length.
All I came up to is that the force between 5 and 1 equals 5 and 2 (the same with 3 and 4). What are the other properties?.
© Game Development or respective owner