Calculating circular origin?
hello everyone,
I'm trying to get origins around an origin to create a beam between center and the end of the circle and I'm not really good at math lol. for example origin would be {0.0,0.0,0.0} which would be the center, and the distance would be 150.0 so I want to make it start from the top of it, and make it go in circular motion by 360° any snippet for it? probably by using floatsin() and floatcos()? I have no idea how to use them thanks in advance! Figured it out! here's a lil snippet if anyone needs it: PHP Code:
|
Re: Calculating circular origin?
Quote:
PHP Code:
|
Re: Calculating circular origin?
https://forums.alliedmods.net/showthread.php?t=336136
Use find_location_around_origin in the first post. |
Re: Calculating circular origin?
Quote:
|
Re: Calculating circular origin?
Quote:
and FFS don't use grey color as the font color it makes it difficult to be read. |
Re: Calculating circular origin?
sorry for the late response everyone, thank you @XSlayer and @Natsheh for the help!
I used gray color cause I meant to show that I solved the problem. what I was trying to do is create an entity that would rotate horizontally or vertically around the player and keeping it at the same direction even if the player turns around. I ended up with these lines which did what I needed: PHP Code:
|
| All times are GMT -4. The time now is 21:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.