Phys2D Performing a Collision please need your help

do you have the world.step() in your updating method or do you only do it whent he mouse is moved?

cause that would kinda make a difference :wink:

What I did is to add a temporary static body in the exact position the pointer is resting so that the puck crashes against it instead of going through it, also I adjusted puck’s dumping and the achieved effect is pretty realistic to me. When mouse moves again I delete the temporary body from the world. I know this solution is trash but hey…it works.

There’s something that I still need to know : How do you know when a body is moving or not ?

Finally, I see some light at the end of the tunnel…

chekc the api…

there is probably a getVelocity() somewhere in the body class.

Instead of deleting and recreating a body every time the mouse moves, why not directly change the position of the same body?

Because It’s like I’m teleporting the pusher around the world instead of actually moving it so it has a velocity…I figured it out…can’t waste any more time on the physics…it works…that’s what matters right? this is my first proyect, my professor is pushing me, deadline is pusing me…you know.