Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting Rope Orientation
#2
(30-11-2022, 12:09 PM)rohit_dhak Wrote: I would like to get/change the orientation of the rope co-ordinate system so that it matches the rope direction.

Hi!

The rope coordinate system does not affect the simulation in any way, in particular, changing it won't rotate the rope or give any information about the rope's orientation. It just determines the vector space in which the rope is initially generated.

(30-11-2022, 12:09 PM)rohit_dhak Wrote: I want this to resolve the issue of rope slipping through pulley ("pulley_orientation.png").

This would not resolve the slipping issue: as I already indicated you trough email you need to use proper collision geometry for the pulleys, instead of a BoxCollider. A cylinder with topped sides would be the best approach. You have an example of this in the "Crane" sample scene.

(30-11-2022, 12:09 PM)rohit_dhak Wrote: The idea is to change/match the pulley orientation same as the rope orientation.

A very simple way of achieving this is to get the vector that goes from the pulley to the attachment point of the rope, then use Quaternion.LookRotation().

kind regards,
Reply


Messages In This Thread
Getting Rope Orientation - by rohit_dhak - 30-11-2022, 12:09 PM
RE: Getting Rope Orientation - by josemendez - 30-11-2022, 01:10 PM
RE: Getting Rope Orientation - by rohit_dhak - 30-11-2022, 01:32 PM
RE: Getting Rope Orientation - by josemendez - 30-11-2022, 01:50 PM