[ H3LP ] Flip angle horizontally
Hello, I'm with a doubt. How I can flip a angle vector horizontally?
I've tried this, but doesn't work as well. Quote:
|
Re: [ H3LP ] Flip angle horizontally
Wait, do you have an angle vector (a unit vector pointing into a direction) or a vector of angles in degrees (0-360)?
Even better, show some code. |
Re: [ H3LP ] Flip angle horizontally
So, basically what I'm doing is a lasermine. Based in lasermine angle, I will create a velocity vector by the mine aim (velocity_by_aim) and get the end origin in a distance of 9999. After some tests, I see that when I do this while the mine is placed in wall, it work, but if it is in the ground or in "roof" get the inverse direction than I want. Then if it is on the ground, laser will be generated in ground direction, if in roof, laser will be generated in roof direction. I hope you understand, but this was solved.
Code:
|
| All times are GMT -4. The time now is 04:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.