![]() |
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. |
Nice! :D
|
Too.. much.. math.. brain.. failure..
|
*curls into the fetal position and sucks his thumb*
It may just be me but some of the text in http://wiki.graal.net/index.php/Matrix is incredibly hard to read. I'd try and fix it but i'd probably set the wiki on fire. |
Hurray!
|
Quote:
|
Quote:
Although anyone could have seen it coming. But still. Anyways, perhaps you could show an example of how you would use these functions to do something like that ball thing? I'm unsure what each of these do...:( |
| All times are GMT +2. The time now is 08:39 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.