Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:34 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.