03-06-2020, 04:45 PM
(This post was last modified: 03-06-2020, 04:50 PM by josemendez.)
(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.