0

Is it possible to take the magnitude of an object on one axis and put it inside of a variable and give it to a separate object on a different axis? Does magnitude not work that way?

1 Answers1

-1
//this is the first axis    
Vector3 axis1 = whatever;
//this is the second axis
Vector3 axis2 = whatever;
//this normalizes the second axis
axis2.Normalize();
//this multiplies the the second axis with the first axis' magnitude
axis2 *= axis1.magnitude;
Joey Quinto
  • 367
  • 2
  • 6