Quote:
Originally Posted by blackalegator
Nice plugin! Looked at the code, but it is pretty hard to understand it for me now. I am really new to sourcepawn, anddunno any of the props. Still... 950 lines of code!
Edit: Huh? Found some really handy functions for myself. Thank you!
PS what is that line doing? Float:f=GetAngle(normal, up)*180/Pai; ?
I thought GetAngle returns degrees, not radians
|
My English is bad ,I am hard to describe my code ,so I never made comments , but today I spend an hour to comment my code, please download again.
/*
* angle between x1 and x2
*/
Float:GetAngle(Float
1[3], Float
2[3])
{
return ArcCosine(GetVectorDotProduct(x1,x2)/(GetVectorLength(x1)*GetVectorLength(x2)));
}
It return radians not degree.