View Single Post
  #1  
Old 08-28-2007, 03:03 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
NPCServer updates (Math functions)

Today the npcservers have been restarted.
There are a few new functions taken from the client which handle vectors, boxes and matrices. Most of them are listed at http://wiki.graal.net/index.php/Crea...pt/Client#Math.
Those handle 3d vectors, but can also be used to calculate angles e.g. for getting the reflection angle of a ball when colliding with a player. Just use z=0 if you want to do 2-dimensional calculations.
Reply With Quote