[INC] Vector helpers
1 Attachment(s)
Extends functionality of SourceMod vectors so you don't have to iterate through array blocks every time you want to do a simple operation on a vector. More or less self explanatory what each of them do, but there is some documentation in there
Included:
Some helper functions
|
Re: [INC] Vector helpers
New file uploaded, added:
VectorsEqual VectorIsZero VectorRotateOnAxis VectorMatrix MatrixVectors MatrixAngles |
Re: [INC] Vector helpers
Saves me lots of time, thanks.
|
Re: [INC] Vector helpers
Code:
stock void VectorRotate(float vec[3], const float matrix[3][3]) The rotation matrix values don't seem to be correct either. Basically, you shouldn't use this .inc file, unless you want to face bugs that are really hard to debug. |
Re: [INC] Vector helpers
Just copy pasted what was in mathlib, only thing I wrote myself which could be completely wrong is VectorRotateOnAxis
|
Re: [INC] Vector helpers
PHP Code:
LOL |
Re: [INC] Vector helpers
PHP Code:
PHP Code:
|
All times are GMT -4. The time now is 20:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.