Kinematic and collision

Topics: Developer Forum, User Forum
Mar 24, 2011 at 11:22 AM
Edited Mar 24, 2011 at 11:24 AM

<object width="425" height="344"> <param name="movie" value="http://www.youtube.com/v/tsryAqmMHQg?hl=it&fs=1" /> <param name="allowFullScreen" value="true" /> <param name="allowscriptaccess" value="always" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/tsryAqmMHQg?hl=it&fs=1" allowscriptaccess="always" allowfullscreen="true"></embed> </object>

Hello everyone. To show you my problem, I uploaded a video. I create a runtime circles. when I move my finger enables a rectangle type Kinematic and tapping the circle collides and I apply the body of the circle ApplyLinearImpulse. my problem is if I move my finger quickly the bounding type Kinematic beyond the circles and does not trigger the event OnCollision why?

Mar 24, 2011 at 11:26 AM

 

http://www.youtube.com/watch?v=tsryAqmMHQg

 

 

Hello everyone. To show you my problem, I uploaded a video. I create a runtime circles. when I move my finger enables a rectangle type Kinematic and tapping the circle collides and I apply the body of the circle ApplyLinearImpulse. my problem is if I move my finger quickly the bounding type Kinematic beyond the circles and does not trigger the event OnCollision why?

 
Mar 25, 2011 at 10:11 AM

If you are moving the circle by manually setting its position, then this is the reason. Farseer doesn't like very much when the position is manually set, instead you should apply impulses/forces or setting the linear velocity to the point you want to move the circle if it is a kinematic body.

Mar 25, 2011 at 11:15 AM
Pnikosis wrote:

If you are moving the circle by manually setting its position, then this is the reason. Farseer doesn't like very much when the position is manually set, instead you should apply impulses/forces or setting the linear velocity to the point you want to move the circle if it is a kinematic body.

ok, thak you