How to find the midpoint between two or more objects in Unity

Опубликовано: 15 Март 2026
на канале: Tanha Game Dev - Game & XR maker
1,385
22

How to find the position of a point between two or more objects in Unity and use it to place another object.
-----------------------------------------------------------------------------------------------
Intro: 0:00
Make sample scene: 00:25
Solution introduction: 01:04
Scripting: 02:02
Variables: 02:31
Main function: 02:41
Runtime Test 1: 03:50
Scene with more points: 04:48
Add more points to the script: 05:14
Test 2: 06:55
Finish: 08:44
-----------------------------------------------------------------------------------------------
Playlist:    • Short tutorials  
-----------------------------------------------------------------------------------------------
My website: http://abolfazltanha.com/
-----------------------------------------------------------------------------------------------
#game #videogame #debugging #coding #unitydev #pivot #pivotpoint #model