Skip to content

Instantly share code, notes, and snippets.

@zulman
Created June 28, 2012 12:22
Show Gist options
  • Save zulman/3011030 to your computer and use it in GitHub Desktop.
Save zulman/3011030 to your computer and use it in GitHub Desktop.
controller->Location += gcnew Vector3((A.x-controller->Location.x) * value->Native->X,(A.y-controller->Location.y) * value->Native->Y, controller->Location.z);
Где A - Vector3
{
x = (x1+x2+...+xn)/n
y = (y1+y2+...+yn)/n
z = (z1+z2+...+zn)/n
}
1..n - члены скалируемой группы объектов
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment