Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tearing rope on Collision
#3
(13-10-2020, 11:43 AM)josemendez Wrote: 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:

Code:
ropeObject.Tear(ropeElements[particleToTear]);

do

Code:
ropeObject.Tear(ropeElements[j]);

Silly me! Thank you very much. That worked.
Reply


Messages In This Thread
Tearing rope on Collision - by Spectra_7 - 13-10-2020, 11:41 AM
RE: Tearing rope on Collision - by josemendez - 13-10-2020, 11:43 AM
RE: Tearing rope on Collision - by Spectra_7 - 13-10-2020, 12:00 PM
RE: Tearing rope on Collision - by josemendez - 13-10-2020, 02:29 PM