isKinematic Body appear in another body high velocity

Chipmunk2D Bindings for the Unity3D engine
Post Reply
kartast
Posts: 2
Joined: Thu Mar 06, 2014 2:49 am
Contact:

isKinematic Body appear in another body high velocity

Post 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.
kartast
Posts: 2
Joined: Thu Mar 06, 2014 2:49 am
Contact:

Re: isKinematic Body appear in another body high velocity

Post 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.
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: isKinematic Body appear in another body high velocity

Post 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?
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
bianor
Posts: 2
Joined: Wed Jan 14, 2015 6:19 am
Contact:

Re: isKinematic Body appear in another body high velocity

Post by bianor »

You should check youtube, there is alot of videos
bianor :)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest