#158842 - DiscoStew - Thu Jun 19, 2008 6:59 am
At first, I was thinking I could get away with using just a 4D Bezier curve for my 3D path, having 1 value for the Zaxis, and the other 3 for positioning, which will in turn calculate the Y and X axis via position differencing and using Arctan, and for the most part, it worked.
But as I continued, I found that unless I wanted to stay within the limit of that method (to basically be limited to -90? < x < 90?), I'd have to find another method, because when using Arctan, going past those limits can make the angle jump, and even when that is corrected for the most part, the actual orientation is not known (from my perspective).
My latest idea was to just have 2 3D Bezier curves, one set for positioning, and the other for direction, and just make the direction curve match up with the position curve. Before I go full out on this idea, I'd like to know everyone else's idea about 3D paths, and what you all think might be better to work with. Basically, I want to be able to have a 3D path that an object follows, that rotates along the path whichever way it curves, including being able to go in the opposite direction, and be rotated to match it. 2 3D Bezier curves should do the trick, but I'd like to know what everyone else thinks.
_________________
DS - It's all about DiscoStew
But as I continued, I found that unless I wanted to stay within the limit of that method (to basically be limited to -90? < x < 90?), I'd have to find another method, because when using Arctan, going past those limits can make the angle jump, and even when that is corrected for the most part, the actual orientation is not known (from my perspective).
My latest idea was to just have 2 3D Bezier curves, one set for positioning, and the other for direction, and just make the direction curve match up with the position curve. Before I go full out on this idea, I'd like to know everyone else's idea about 3D paths, and what you all think might be better to work with. Basically, I want to be able to have a 3D path that an object follows, that rotates along the path whichever way it curves, including being able to go in the opposite direction, and be rotated to match it. 2 3D Bezier curves should do the trick, but I'd like to know what everyone else thinks.
_________________
DS - It's all about DiscoStew