• 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
0
Question by sirius_black9999 · Dec 17, 2014 at 11:48 AM · physicsforcejointsjointrope

reading forces applied to a rigidbody

i'm working on a project that uses rope physics, where one end is attached to a fixed point, and some position down the rope can be manipulated by the user

the problem is that once the rope is pulled tight, the segments start displaying a wild jittering behavior

the rope system i'm using appears to consist of various rigid bodies joined together with hinge joints, and i would like to be able to detect when tension is applied to the rope in order to prevent this jitter and instead "slide" the rope down the user's hand, in order to do so i can't use velocity, as the user's pulling force and the tensile force cancel out, leaving only the jitter as noise, which is exactly what i'm trying to prevent (preferably before it's very noticeable)

so in the end my question is: is there a way to do one of the following:

  1. read tension on joints?

  2. forces applied to joints?

  3. forces applied to rigid bodies?

Comment
Add comment · Show 1
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 Antony-Blackett · Dec 17, 2014 at 12:02 PM 0
Share

2D or 3D physics?

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Antony-Blackett · Dec 17, 2014 at 12:08 PM

Looking at the Unity Reference docs I can't see any direct way to read the tension or forces as you'd like to...

One thing you could try is to test if the rope is straight, if the rope is straight and your user is pulling in the same direction as the rope then you can assume that it's pulled fully tight.

You can see if the rope is straight by getting the Vector3.Dot() of each node in the rope down the chain, or alternatively reading the hinge joint angle and testing that they are within some threshold range along the way.

Hope this helps.

Comment
Add comment · Show 1 · 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 sirius_black9999 · Dec 17, 2014 at 03:06 PM 0
Share

unfortunately the rope starts to jitter well before the rope is straight due to its own weight, and that's at a mass of 0.0001, and the fixed end of the rope is actually attached to the ground, this ends up resulting in the average dot product increasing as the rope is pulled off the ground, then slightly decreasing as some minor tension is applied, before increasing again due to jitter, the same happens when testing the angles

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

28 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

Related Questions

Hinge Joint Giving Fake 'Slack' 0 Answers

How to create a freely swinging "rope" of modifiable size between two rigid bodies? 0 Answers

Violent shaking when using position drive in Configurable Joints 1 Answer

Attaching material or sprite to DistanceJoint 2d 2 Answers

Joints 2D, rope 0 Answers

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