
04-06-2005, 02:46 AM
|
|
Former Classic Staff
|
 |
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
|
|
|
What would be the best function Gscript could add, since I hate having to write it out every time, would be the distance formula!
((x1-x2)^2 + (y1-y2)^2)^(1/2)
this can get very ugly. I mean, right now you have all of these parenthesis and powers already, now the trouble comes when the variable names get bigger.
dist(x1,x2,y1,y2) or dist(x1,x2,y1,y2,z1,z2) would be nice... just more organized that way. I mean, there's already getangle and such, why not distance?
What else would be nice?
acceleration, radius (for rotation), and rotational acceleration for the move function. |
|
|
|