isKinematic crashes consistently

Chipmunk2D Bindings for the Unity3D engine

Re: isKinematic crashes consistently

Postby meapps » Sun Nov 10, 2013 6:17 pm

ensomniac wrote: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 just testing it myself but it dont crashes anymore if you set isKinematic to false.
Posts: 10
Joined: Wed Sep 25, 2013 5:00 pm

Re: isKinematic crashes consistently

Postby AndyKorth » Thu Nov 14, 2013 11:24 am

I'm not sure if this is related, but someone recently asked about explicitly setting kinematic bodies to sleep. This doesn't quite make sense if you really think about what a kinematic body does, but it will currently cause a crash.

It doesn’t really make sense to make a kinematic object sleep. Kinematic objects are already not driven by the physics engine, and are instead driven by your code (like a moving platform). So something like a moving platform shouldn’t sleep, since you want the objects it interacts with to move.

If you have kinematic objects that you never move, like the static terrain in the platformer example, they should be static shapes (shapes without bodies), same sort of approach with PhysX. Geometry without bodies is even better than sleeping geometry with a body attached, in terms of performance.
User avatar
Site Admin
Posts: 36
Joined: Wed Aug 15, 2007 3:56 pm


Return to Chipmunk2D for Unity

Who is online

Users browsing this forum: No registered users and 1 guest