mimusic
Member
Hey all! I've been struggling with this problem all day, and none of my searches for an answer have yielded anything useful. I'm trying to create a system in which one 3D object attaches itself to another 3D object at a specific point, accounting for the "anchor" object's rotation around all 3 axes. To provide an example of what I'm trying to accomplish:
Any help, whether it be advice or links to helpful math explanations/videos, would be greatly appreciated!
- You have 2 objects; a pole and a star
- The star should always appear at the top of the pole, regardless of the pole's rotation along any axis; its XYZ should therefor be found using the pole's XYZ coords and XYZ rotation
- The origin of the pole is at its base; Because of this, the base of the pole remains in the same position upon rotating.
- You know the length of the pole and the xrotation, yrotation, and zrotation of the pole.
- Given base coordinates (xx, yy) and length L, find the offset coordinates with given angle A:
- dx = xx + L*dcos( A ); dy = yy + L*dsin( A );
Any help, whether it be advice or links to helpful math explanations/videos, would be greatly appreciated!