isKinematic crashes consistently

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

isKinematic crashes consistently

Post by ensomniac »

Hey Guys,
I ran into a stability issue with isKinematic a few months ago when I first started using Chipmunk. The issue was that setting:

Code: Select all

body.isKinematic = false;
...crashes Unity every time I use it. I initially got around the issue by setting the entire object to inactive, which helped at the time. Now I need to figure out what is actually wrong. My understanding is that I should be able to set body.isKinematic to false at any time and freeze it's position until I set isKinematic to true.

I noticed that there were some mentions of this bug in the change log so I've updated to the latest version of Chipmunk. The issue seems to persist though.

Two questions:
1. Is this a known bug?
2. How should I go about 'freezing' the location and rotation of a body?

My end goal is to pause my game without setting the timeScale to zero. Thanks
Ryan
meapps
Posts: 10
Joined: Wed Sep 25, 2013 5:00 pm
Contact:

Re: isKinematic crashes consistently

Post by meapps »

happend to me too
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: isKinematic crashes consistently

Post by slembcke »

Are you using 1.0.3? (Available here) There was a bug I fixed related to that. If you are running 1.0.3, can you help me out by making a replication project? I can't reproduce it, but sometimes bugs are very order sensitive in Unity (Like a certain object gets initialized before another, that sort of thing). Since you don't have a lot of control over that, it can make it difficult to reproduce a bug.
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: isKinematic crashes consistently

Post by ensomniac »

I'm happy to help, but I don't see that version available. I'm Using 1.0.2, the latest available at the link you posted:

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

Re: isKinematic crashes consistently

Post by slembcke »

Oh. I guess We should be more clear about that. The latest version is 1.0.3.

We used to have a separate places on the page for the latest version and older downloads. Some information got a little lost when we stuck it all in one place. Fixed now though.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
meapps
Posts: 10
Joined: Wed Sep 25, 2013 5:00 pm
Contact:

Re: isKinematic crashes consistently

Post by meapps »

slembcke wrote:Oh. I guess We should be more clear about that. The latest version is 1.0.3.

We used to have a separate places on the page for the latest version and older downloads. Some information got a little lost when we stuck it all in one place. Fixed now though.
Downloading 1.0.3 seems not work.
ensomniac
Posts: 17
Joined: Thu Sep 05, 2013 1:54 pm
Contact:

Re: isKinematic crashes consistently

Post by ensomniac »

Same here - I get an error trying to download the latest.
meapps
Posts: 10
Joined: Wed Sep 25, 2013 5:00 pm
Contact:

Re: isKinematic crashes consistently

Post by meapps »

ensomniac wrote:Same here - I get an error trying to download the latest.
download it from the git there is a new version...
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: isKinematic crashes consistently

Post by slembcke »

Argh. So apparently changing "latest" to "latest (1.0.3)" breaks everything. We spent a bunch of time looking over the PHP, but can't figure out what is going on. I reverted the popup list labels so you can at least download it.

I really really hate web programming. -_-
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: isKinematic crashes consistently

Post by ensomniac »

I've updated to the latest, but isKinematic still crashes my app each time it's used. I currently have no solution for freezing a Chipmunk-driven element (other than setting timescale to zero) since sleeping and waking a body causes my app to crash.

I would love a solution for this since it's a requirement in my game. Thanks
Ryan
Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests