Raised This Month: $ Target: $400
 0% 

How can I check that?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 06-21-2019 , 03:14   Re: How can I check that?
Reply With Quote #1

In that case you just should align your current angle to an increment of 15.
Code:
new const alignedAngle = (floatround(currentAngle + 7.5) / 15) * 15;
Then you can just add or sub 15 a couple of times to get 90, 105 etc.

And please set a proper title.
__________________

Last edited by klippy; 06-21-2019 at 07:50.
klippy is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode