Hi There,
I am trying to make a sticky projectile without using the following method in this tutorial:
http://www.iforce2d.net/b2dtut/sticky-projectilesI basically have a simple cannon that throws a ball with high velocity and I would like it to stick to a surface.
I tried the following approach by simply setting the following settings for the ball on contact however the ball keeps sliding slowly which I don't want:
Ball:
Object->setStatic(true);
Object->setAngularVelocity(0);
Object->setLinearVelocity(0,0);
Sticky Surface is a simple box with following physical properties:
Friction:5.0f //High Friction
Restitution: 0.0f //No Bounciness
Density:1.0I really appreciate it if someone can help me out.
Thanks,
HS