Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
Easy Animation
Convert Fonts
Multiple languages in the same movie.
Link Email
SpriTec Xtra! - Export your Cast and Score
DirectTransition
3D SpeedPort Xtra
Diffusion Effect - Imaging Lingo
Sub Rect
Icon Shop
 

 

 

Behavior Angle detection by J.R.D.R.

Added on 6/16/2003

 

Compatibilities:
D7 D8 D8_5 D9 Mac PC Shockwave

This item has not yet been rated

Author: JRDR

Custom math function calculates the angle between two points. The returned values are between –180…180 degrees and never divides by zero. atan2 ( startPoint, endpoint )

on atan2 pt1, pt2
  sl = pt2 - pt1
  a = atan(sl[2],sl[1]) * 180 / pi
  return a
end

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail