Search found 2 matches

by yakisoba
Mon Apr 13, 2020 4:38 pm
Forum: General
Topic: destroy() vs release()
Replies: 2
Views: 3054

Re: destroy() vs release()

Okay, after some testing and poking around, I found that Object:release simply disables the body's Lua reference. The body itself will still remain active within the physics world. Body:destroy removes it from the world and disables its reference. In the C++ source, destroy() also calls release(), b...
by yakisoba
Mon Apr 06, 2020 4:16 am
Forum: General
Topic: destroy() vs release()
Replies: 2
Views: 3054

destroy() vs release()

If I want to free a physics body from memory, is there any difference between calling Body:destroy and Object:release?