| Blockland Forums > Modification Help |
| Iban Explains it All |
| << < (27/39) > >> |
| Reinforcements:
--- Quote from: Iban on March 31, 2011, 09:05:41 AM ---Vectors and the like are in the realm of trigonometry which is more Space Guy's thing. I cannot do complex math. --- End quote --- Oh, ok. |
| otto-san:
It says so if you look at the ZAPT code. :cookieMonster: --- Code: ---function Player::zombieAimVec(%obj) { // Space Guy's code (iban no good at math) %fvec = %obj.getForwardVector(); %fX = getWord(%fvec, 0); %fY = getWord(%fvec, 1); %evec = %obj.getEyeVector(); %eX = getWord(%evec, 0); %eY = getWord(%evec, 1); %eZ = getWord(%evec, 2); %eXY = mSqrt((%eX * %eX) + (%eY * %eY)); %aimVec = (%fX * %eXY) SPC (%fY * %eXY) SPC %eZ; return %aimvec; } --- End code --- |
| Reinforcements:
lol |
| Destiny/Zack0Wack0:
--- Quote from: Iban on March 31, 2011, 09:05:41 AM ---Vectors and the like are in the realm of trigonometry which is more Space Guy's thing. I cannot do complex math. --- End quote --- Not really. I can try writing a tutorial if you'd like. |
| Reinforcements:
--- Quote from: Destiny/Zack0Wack0 on April 01, 2011, 03:22:37 AM ---Not really. I can try writing a tutorial if you'd like. --- End quote --- :D please do! |
| Navigation |
| Message Index |
| Next page |
| Previous page |