Obi Official Forum
Help what is inTangentVector and outTangentVector - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html)
+--- Thread: Help what is inTangentVector and outTangentVector (/thread-2682.html)



what is inTangentVector and outTangentVector - FZMv587 - 05-01-2021

Hi!
I made rope use scripting, when I set "control point" with this code.
Code:
AddControlPoint (Vector3 position, Vector3 inTangentVector, Vector3 outTangentVector, Vector3 normal, float mass, float rotationalMass, float thickness, int phase, Color color, string name)

I know Tangent Vector but i confused about inTangentVector and outTangentVector, why there is two?


RE: what is inTangentVector and outTangentVector - josemendez - 05-01-2021

(05-01-2021, 09:03 AM)FZMv587 Wrote: Hi!
I made rope use scripting, when I set "control point" with this code.
Code:
AddControlPoint (Vector3 position, Vector3 inTangentVector, Vector3 outTangentVector, Vector3 normal, float mass, float rotationalMass, float thickness, int phase, Color color, string name)

I know Tangent Vector but i confused about inTangentVector and outTangentVector, why there is two?

Its just how Béziers are built. Bézier curve segments are defined by 4 points:

https://en.m.wikipedia.org/wiki/Bézier_curve

This can be represented as two points, with one tangent vector each. Once you concatenate several segments, you get two tangents per point: one to their “left” and one to their “right”. If you’ve ever used curves in any program (illlustrator, photoshop, maya, after effects...) they’re represented the same way.