• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by Nidaoke · Oct 22, 2017 at 09:05 PM · unity 5gamephysics2dropechain

How to get ball and chain effect like in SkullChainz?

https://chaoclypse.itch.io/skullchainz

I've been searching many forum posts and trying many ways to work with Unity's 2D physics engine but I just can't get an effect similar to the one in the game above, with a moving character and a swinging ball off of it. I've tried working with 2d hinge joints but nothing I do seems to provide the desirable effect. If anyone knows how to accomplish this, any help would be greatly appreciated!

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by Chaoclypse · Oct 24, 2017 at 01:37 AM

Hey, I'll type out a longer answer later once I get back from school (my laptop with the source code is back home). I'm going off memory right now, so I may be way off, but try it out and let me know.

Basically, if I remember right, I did not use hinge joints. It has a spring effect that made it very hard to use properly.

Instead, I used distance joints. In addition, I modified the linear and angular drag of the rigidbodies so that they wouldn't come to a halt so quickly.

Oh, and optionally add a force to the segments of the rope in addition to using rigidbody2D's moveposition on the origin object to make it look more natural!

But yeah, I'll go back and check later. Again, I may be way off, haha.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Nidaoke · Nov 04, 2017 at 07:29 PM 0
Share

Sorry for the late reply, been a bit busy with school lately. Thank you for the answer btw, got me a lot closer to the desired affect! I'm still having one issue though that I'm wondering how you got to implement in this mechanic. When I move the character, I can get the ball of course to basically dash back, but it doesn't get the violent, erratic style movements present in Skullchainz, ins$$anonymous$$d it follows a much more circular, floaty movement. Any idea on how I can resolve this?

avatar image Chaoclypse · Nov 05, 2017 at 05:38 AM 0
Share

That sounds like a problem with drag! Try modifying both of the drag attributes, and upping the force. This will allow your objects to be swung in a much more forceful manner while also bringing them to a halt faster.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

169 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How do you make an wire/rope type object and attach to 2 separate objects 1 Answer

Need help in typing project 0 Answers

How to implement customized character into my next scene? 0 Answers

2D Platforme Rope 1 Answer

How to make an object like rope to bend towards camera / direction light position. 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges