Firex Posted April 18, 2013 Share Posted April 18, 2013 (edited) Hello! You must apply Angles relative coordinates, and then turn about yourself. The first part is solved: _GEng_Sprite_OriginSet($_rFxMemP[3], (($_rFxMemU[1])-$_rFxMemP[6]), (($_rFxMemU[0])-$_rFxMemP[5]) ) _GEng_Sprite_AngleSet($_rFxMemP[3], Floor( $_rFxMemU[2] )) (A little more detail) There is a center of reference coordinates. To the direction of the inspection of the center and its position on the map, the map rotates. You must install new objects relative to the map (not the reference center), move them relative to the reference center (the center of the current map rotation), and apply your own angles. Edited April 18, 2013 by Firex Link to comment Share on other sites More sharing options...
water Posted April 18, 2013 Share Posted April 18, 2013 Welcome to AutoIt and the forum! You posted in the General Help and Support forum. Usually users post questions here. So what is your question? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Firex Posted April 18, 2013 Author Share Posted April 18, 2013 Welcome to AutoIt and the forum!You posted in the General Help and Support forum. Usually users post questions here. So what is your question?Double rotation about the origin of different means Gengin.How to implement it? Link to comment Share on other sites More sharing options...
Firex Posted April 18, 2013 Author Share Posted April 18, 2013 (edited) As a variant, and can be rotated once (about itself). A different method to calculate the position (no rotation). In the first post I have tried to describe. Edited April 18, 2013 by Firex Link to comment Share on other sites More sharing options...
Decipher Posted April 18, 2013 Share Posted April 18, 2013 (edited) Firex,Unless this code is supposed to be closed source then why take it out of context? Please post all of the relevant code so we may better understand how to help you. I mean is this about Quanta and Relativity or about an image being rotated.... I'd be happy to help if I'd understood anything you've said yet.*Edit - There is allegedly some great code in this UDF Anonymous Edited April 18, 2013 by Decipher Spoiler Link to comment Share on other sites More sharing options...
Firex Posted April 18, 2013 Author Share Posted April 18, 2013 (edited) Decipher, Sorry, the source code private :CBut while I was waiting for an answer I came up with an idea.You can try to find a vector, rotate it relative to the map, paving the distance and put the item. And then turn it by conventional means.Tomorrow I will try and if it does not, I'll try to explain in detail all the clippings of code Edited April 18, 2013 by Firex Link to comment Share on other sites More sharing options...
Decipher Posted April 19, 2013 Share Posted April 19, 2013 Firex, Please do tell. Anonymous Spoiler Link to comment Share on other sites More sharing options...
Firex Posted April 19, 2013 Author Share Posted April 19, 2013 (edited) Decipher,http://en.wikipedia.org/wiki/Polar_coordinate_systemHelped to solve here so here is a way. Edited April 19, 2013 by Firex Link to comment Share on other sites More sharing options...
Decipher Posted April 20, 2013 Share Posted April 20, 2013 I see that it can be quite complicated. You stated that "There is a center of reference coordinates". Do you mean that the coordinates define a region and that the region has a center? What do the coordinates reference, the map? Were the words you used your own or were they taken out of someone else's context? You have some code that defines a two dimensional map? Does the map rotate? There is obviously to many unanswered questions. If you will take the time to clearly explain what your trying to accomplish and why then others will surely lend a helpful hand but as you've already solved this problem I see no reason to continue its discussion. Anyway, thanks for trying to explain bro. Anonymous Spoiler Link to comment Share on other sites More sharing options...
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