TobiasWehrum / unity-utilities

A collection of Unity3D scripts I've been sharing between projects - open source, fully commented and with examples.
MIT License
274 stars 27 forks source link

Centroid helper method #4

Closed oxysoft closed 8 years ago

oxysoft commented 8 years ago

The centroid is found by taking a list or array of Vector3 and finding the point at the center of the distribution. Useful in a variety of game features, like placing a camera at the center of multiple player characters in a fighting game.

TobiasWehrum commented 8 years ago

Added to UnityHelper.