13-10-2020, 11:43 AM
(This post was last modified: 13-10-2020, 11:46 AM by josemendez.)
Using a particle index to look into an elements array makes no sense whatsoever. There's usually more particles than elements in a rope, hence the out of range exception. Instead of:
do
Code:
ropeObject.Tear(ropeElements[particleToTear]);
do
Code:
ropeObject.Tear(ropeElements[j]);