isKinematic Body appear in another body high velocity

Chipmunk2D Bindings for the Unity3D engine

isKinematic Body appear in another body high velocity

Postby kartast » Thu Mar 06, 2014 2:59 am

hi.. I have many circles body in the screen, when user touch the screen and position a kinematic body into the the screen fully filled with circles, the circles nearby the kinematic body sometimes disappear. After checking I notice the velocity is -24000 (like very large number). I try capping the velocity in Update(), but sometime it still misses.

Is this expected behaviour? How can I prevent bodies from flying off the screen?

Previously when I was using Unity2D, the same situation, the circles will just pushed out of the kinematics body. I am trying to achieve the same effect.
kartast
 
Posts: 2
Joined: Thu Mar 06, 2014 2:49 am

Re: isKinematic Body appear in another body high velocity

Postby kartast » Thu Mar 06, 2014 3:07 am

Update: actually not only the affected circles disappear.. in extreme cases all circles on the screen instantly fly away in very high speed.
kartast
 
Posts: 2
Joined: Thu Mar 06, 2014 2:49 am

Re: isKinematic Body appear in another body high velocity

Postby slembcke » Fri Mar 07, 2014 7:12 pm

Kinematic bodies have infinite mass. You are basically smashing an unstoppable object into your pile of circles. This can cause problems as it pushes objects out of the way and is allowed to use nearly infinite forces to do so. Is using a regular body not possible?
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
User avatar
slembcke
Site Admin
 
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm

Re: isKinematic Body appear in another body high velocity

Postby bianor » Fri Jan 16, 2015 7:20 am

You should check youtube, there is alot of videos
bianor :)
bianor
 
Posts: 2
Joined: Wed Jan 14, 2015 6:19 am


Return to Chipmunk2D for Unity

Who is online

Users browsing this forum: No registered users and 1 guest

cron