05-01-2021, 09:56 AM
(This post was last modified: 05-01-2021, 09:59 AM by josemendez.)
(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.