body.isSleeping causes Unity stability issues on wake

Chipmunk2D Bindings for the Unity3D engine
Post Reply
ensomniac
Posts: 17
Joined: Thu Sep 05, 2013 1:54 pm
Contact:

body.isSleeping causes Unity stability issues on wake

Post by ensomniac »

Another bug I've discovered is that setting my body objects to sleep like this:

Code: Select all

body.isSleeping = true;
Causes no issues. When I wake the bodies like this:

Code: Select all

body.isSleeping = false;
Unity intermittently crashes. More times than not. Any ideas?

Ryan
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: body.isSleeping causes Unity stability issues on wake

Post by slembcke »

Hmm. Don't see anything obvious that would cause it.

I haven't been able to reproduce it. Any idea what else causes it to happen? Something specific like waking the body back up before the first frame, from a callback or something like that.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
ensomniac
Posts: 17
Joined: Thu Sep 05, 2013 1:54 pm
Contact:

Re: body.isSleeping causes Unity stability issues on wake

Post by ensomniac »

When I wake the body back up, it's not the first frame. Does it need to be?

Ryan
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: body.isSleeping causes Unity stability issues on wake

Post by slembcke »

No, you should be able to wake it up at any time. I'm just looking for anything you can think of to help me narrow down what I'm looking for.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests