Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  what is inTangentVector and outTangentVector
#2
(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.
Reply


Messages In This Thread
RE: what is inTangentVector and outTangentVector - by josemendez - 05-01-2021, 09:56 AM