View Single Post
  #14  
Old 09-03-2003, 12:18 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Quote:
Originally posted by TribulationStaff

Q: How do you add/subtract vectors?
A: It is easy, once in Cartesian coordinates. Let A=<a,b> and B=<c,d>. Then A+B=<a+c,c+d>.
that'll confuse somebody, hurry! fix it before some unsuspecting learner hits their head on it!

The most basic use of vectors in script is just movement, many people already use them without knowing it. Whenever you have a direction (i.e. angle, or even built in directions) and a speed (magnitude) you're using vectors. Using dx (delta x or distance x, whichever you say) and dy is also using vectors, cept they don't need translation (sin + cos) to be used on the board.

I'll post some basics in physics if anyone is interested and if Gilt doesn't mind.
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote