View Single Post
kww
Senior Member
Join Date: Feb 2021
Location: Russia
Old 04-21-2022 , 05:41   Re: get position between N points
Reply With Quote #5

Quote:
Originally Posted by CrazY. View Post
The midpoint can be found by summing each axis and dividing by the number of points.
Assuming your points are A, B, and C:

Code:
// 0 - x axis // 1 - y axis // 2 - z axis center[0] = (A[0] + B[0] + C[0]) / 3 center[1] = (A[1] + B[1] + C[1]) / 3 center[2] = (A[2] + B[2] + C[2]) / 3
Thank you. This definitely gonna help me!
__________________
Now working on: Side Weapons (Very lazy, tbh)
Avatar source: https://bit.ly/3BAk19g
Discord: kww#9951

Last edited by kww; 04-21-2022 at 05:41.
kww is offline