Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Announcements (https://forums.graalonline.com/forums/forumdisplay.php?f=240)
-   -   NPCServer updates (Math functions) (https://forums.graalonline.com/forums/showthread.php?t=76545)

Admins 08-28-2007 03:03 PM

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.

Chompy 08-28-2007 03:32 PM

Nice! :D

xXziroXx 08-28-2007 05:10 PM

Too.. much.. math.. brain.. failure..

Twinny 08-28-2007 05:43 PM

*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.

zokemon 08-28-2007 05:45 PM

Hurray!

Kyranki 08-28-2007 06:02 PM

Quote:

Originally Posted by zokemon (Post 1344197)
Hurray!

That force told me this was coming.

coreys 08-29-2007 12:16 AM

Quote:

Originally Posted by Kyranki (Post 1344204)
That force told me this was coming.

The force is strong in this one.
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.