SoftBody GarbageCollect() and RemoveReferences()

User avatar
sinoth
Posts: 13
Joined: Tue Apr 07, 2009 8:27 pm
Location: USA

SoftBody GarbageCollect() and RemoveReferences()

Post by sinoth »

I'm tinkering with SoftBody rope and can't figure out when to use a few functions present in the demo. Specifically:

Code: Select all

m_sparsesdf.RemoveReferences()
m_sparsesdf.GarbageCollect()
Can anyone explain what these do? RemoveReferences seems to be called only on init, but GarbageCollect is called every step. I tried looking at the source to figure it out but I don't understand a bit of it :/