I’m trying to make a ball attached to a string, but I can’t get it to work properly.

Updated on June 11, 2018 in Unity
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
0 on June 11, 2018

Hi,

I’m new to making games, and I’m trying to create a 2d ball attached to a string that you can move around with your mouse. kind of similar to a wrecking ball. I followed Brackey’s cut the rope tutorial and was able to create the string using hinge joints. And It worked when the hook/base was stationary, but once I attached the base to the mouse position and tried moving it around. It didn’t act like a string, the hinge joints would move apart, and the ball wouldn’t keep momentum.

I’ve tried messing around with the gravity, mass, linear drag, and other rigid body components of the rope/ball. But I have’t been able to recreate a ball on a string that can be control with the mouse.

 

  • Liked by
Reply