Swimer Posted February 19, 2022 Posted February 19, 2022 I have a circle, I know the exact coordinates of its center, I know its radius and diameter, and there is a number of degrees (a number from 0 to 360). How can I draw a picture on the border of a circle, by degree of rotation? I know this can be done using all sorts of sines, cosines, but unfortunately this is a problem for me. *scheme*
Moderators IIYAMA Posted February 19, 2022 Moderators Posted February 19, 2022 1 hour ago, Swimer said: I know this can be done using all sorts of sines, cosines, but unfortunately this is a problem for me. See useful function: https://wiki.multitheftauto.com/wiki/GetPointFromDistanceRotation Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Swimer Posted February 19, 2022 Author Posted February 19, 2022 17 minutes ago, IIYAMA said: See useful function: https://wiki.multitheftauto.com/wiki/GetPointFromDistanceRotation Oh my god. Thank you! Topic closed. 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now