[Tracehull PlaneNormal] if plane is more than x degrees inclined then ...
Hello Alied Modders, Its DareDevil here again...
http://www.upload.ee/image/3441479/123.png Lets say that those grass hills are 90 degrees inclined. Now what i want to do is that if player go standing here in grass hills I do tracehull get planenormal and somehow calculate output of planenormal to angles and check if the ground is inclined more than 90 or -90 degrees. ( if it is i just calculate angle to velocity and push player away from there, down... thats the part what i can do ) I dont understand those vector what planenormal give me, can someone translate them for me? And as always, Thanks! |
Re: [Tracehull PlaneNormal] if plane is more than x degrees inclined then ...
vector_to_angle(Float:vector[3], Float:angle)
hmm, that was easy. now i also know what that planenormal is... |
Re: [Tracehull PlaneNormal] if plane is more than x degrees inclined then ...
When planeNormal[2] is <= 0.7, player can't stand on it.
You can retrieve angle doing this : 90.0 - floatasin(planeNormal[2], degrees) |
| All times are GMT -4. The time now is 06:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.