Page 1 of 1

isKinematic Body appear in another body high velocity

PostPosted: Thu Mar 06, 2014 2:59 am
by kartast
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.

Re: isKinematic Body appear in another body high velocity

PostPosted: Thu Mar 06, 2014 3:07 am
by kartast
Update: actually not only the affected circles disappear.. in extreme cases all circles on the screen instantly fly away in very high speed.

Re: isKinematic Body appear in another body high velocity

PostPosted: Fri Mar 07, 2014 7:12 pm
by slembcke
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?

Re: isKinematic Body appear in another body high velocity

PostPosted: Fri Jan 16, 2015 7:20 am
by bianor
You should check youtube, there is alot of videos