18-03-2021, 01:39 PM
(This post was last modified: 18-03-2021, 01:50 PM by josemendez.)
(18-03-2021, 12:47 PM)tpaslou Wrote: I have made some modifications and the part appears to be mostly tense even when it's not. So I checked the indexes for which I am calculating the strain.
What does the elements array consist of ? My rope has 15 control points , but the rope.elements.count is 86.
Control points do not exist at runtime. They are not part of the rope, they are part of the path used in-editor to define the rope's initial shape.
Ropes are made of particles (since Obi is a particle based engine) and structural elements. You can think of elements as the "edges" in between particles. Each edge joins two particles.
So for instance: if you rope has 86 elements, the element at 10% of the rope's length is element 0.1 * 86 = 9.