brettmorrisonAO5ANNEX / 3D_modeling_animations

0 stars 0 forks source link

Line-Point Orientation Math Issue #1

Closed brettmorrisonAO5ANNEX closed 7 months ago

brettmorrisonAO5ANNEX commented 7 months ago

Currently, the way I implemented fetch_correction in Bezier bezier.py does not properly calculate the offset proportions to get the line to start/end right at the edge of the circle:

Screenshot 2024-01-12 at 10 21 27 PM Screenshot 2024-01-12 at 10 21 27 PM
brettmorrisonAO5ANNEX commented 7 months ago

The fix I came up with was to get the unit direction vector between the start and end points and then scale it to have length = radius of the start sphere. The resulting vector (d_rad_norm) contains the necessary offsets to add to the center to get the tracker line to start at the surface of the sphere in the direction of the end point.

Image-1 (1)