Question by
charls_vash · Mar 31, 2016 at 08:16 PM ·
movementscript.movevector2
It is posible to use a vector2 with a math function?
I want to know if you can use a Math function to make a specific movement
Comment
Probably yes? Care to elaborate or specify which math function? The Vector2 class has functions such as $$anonymous$$oveTowards, Distance, and etc which are also available in $$anonymous$$athf.
example of a math function using vector2s:
public Vector2 Add(Vector2 a, Vector2 b)
{
return a + b;
}
oh thanks, and i was thinking in a vectorial function like a parabolic function or a proyectil, and i want to put it in a 2d object.
Your answer
Follow this Question
Related Questions
Movement scrip 0 Answers
Help: Use a Trigger object to slow Player while inside object 0 Answers
I can't move my player in a fps? 1 Answer
Need help to solve problems with First Person Dungeon Crawler movement script 0 Answers
How do I move a prefab the same speed as my scrolling background? 0 Answers