With the most recent builds of 0.6.0 my game is very close to working but destroy() no longer exists, I notice its not listed in http://love2d.org/potato/ either.
Was it removed? if so, why?
I need an efficient way to delete shapes primarily, and I was hoping for a way to delete bodies with implicit destruction of all attached shapes / joints.
perhaps theres another way to do it that I'm overlooking?
What happened to "destroy"?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- The Burrito
- Party member
- Posts: 153
- Joined: Mon Sep 21, 2009 12:14 am
- Contact:
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: What happened to "destroy"?
Just setting the variable in which the shape/body is stored to nil should be enough.
- The Burrito
- Party member
- Posts: 153
- Joined: Mon Sep 21, 2009 12:14 am
- Contact:
Re: What happened to "destroy"?
oh, I tried that and thought it didn't work, but under further inspection it appears that I was getting collision with an overlapping invisible shape.
Thanks!
Thanks!
Re: What happened to "destroy"?
I don't remember removing destroy.
WTF, sirs.
WTF, sirs.
- The Burrito
- Party member
- Posts: 153
- Joined: Mon Sep 21, 2009 12:14 am
- Contact:
Re: What happened to "destroy"?
So does shape:destroy() do the same thing as shape=nil ?
I would assume I would want to use destroy.
I'm getting some random glitchy things happening still, but I'm assuming those are related to other things (currently I think most of it has something to do with testsegment).
I would assume I would want to use destroy.
I'm getting some random glitchy things happening still, but I'm assuming those are related to other things (currently I think most of it has something to do with testsegment).
Who is online
Users browsing this forum: Google [Bot] and 41 guests