Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Rope without bending and stretching
#8
(03-06-2020, 04:43 PM)davidsedrakyan Wrote: Yes, you are completely right, so I need to pass 0 or 1 for each point of rope, and I will get ObiPathFrame struct, from what i can get rotation of the point?

The struct contains a full orthonormal frame (tangent, bitangent and normal, the tangent vector points along the rope curve). You can easily get a quaternion from that. See:
https://docs.unity3d.com/ScriptReference...ation.html

Keep in mind that ropes do not model torsion, so twist along the tangent axis is largely undefined. You might want to use your character's forward vector instead of the frame's normal vector to get consistent orientation.
Reply


Messages In This Thread
RE: Rope without bending and stretching - by josemendez - 03-06-2020, 04:45 PM