I’ve traced out the orbits I want with the EllipseCurve, and rotated them to give the eccentricity. The issue I’m having is, how to get the comets (the small circle in the image) to follow the ellipse curve? I’ve tried using getPoint() to get an array of coordinates, then move the comet to the locations of the ellipse. But, this isn’t working… plus I don’t think this is the correct way of doing this. Originally I tried using a rotating Object3D as an anchor, but soon realised I couldn’t use this as I couldn’t get an elliptical orbit.
Im kinda stuck for what to do, and I’m so new to this library I’m not sure where to look. Any advice is greatly appreciated.
The extension of the internal quaternion methods used in some examples
( THREE.Quaternion.prototype.setFromBasis = function( e1, e2, e3 ) { ... )
you don’t need to understand the content. It allows for a clear code and can be easily used like an internal method.
Thanks for the post, It was really informative. Ive managed to move in what I believe is the correct direction just that little more.
If you don’t mind me asking another question… I’ve gone through the MoveAlongCurve example you provided and tried recreating it myself with the project I was working on. However I’ve run into the issue of the comet not loading, and I cant for the life of me figure out why…
The issue I believe is in the Flow section, because if I add it normally it has no issues and shows up. I’m a little unsure with Flow since its totally new to me.
I’m getting no error messages, so I’m a little confused.
Code screnshots are problematic. Better is to copy the decisive code into the post, mark it with the mouse and format it as code with </> from the toolbar.
okay, I’ll do some research tonight… Would it be possible to quickly explain the issue you see? I’m happy to research but I don’t know what the problem is…
I see the post you’ve linked is to do with arrow bending along the line, but it that required for a circle? I just want it to follow the rails.
I’ve been playing around with the examples you sent to me and have been trying to figure this problem out. I replaced the Box element with circle element and things seem to be working so far.
I think I’ve narrowed down the issues with my project… I have a feeling the issues is that I’m passing in a Vector2 array when the CatmullRomCurve3 expects a Vector3 array.
So my question is… is it possible to use getPoints() or a similar method on the lines drawn from the rotated EllipseCurve show in the screenshot in my original post?
I can use the getPoints() on the EllipseCurve to get a 2D array of the EllipseCurve (shown above)… However, if I want to get the eccentricity I need to use rotation on the ellipseCurve. This I cannot do on the EllipseCurve unless I make it a line (shown below), the issues is I cannot use getPoints() on a line.