Admins

08-28-2007, 04:03 PM

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/Creation/Dev/Script/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.

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/Creation/Dev/Script/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.