Sign in to follow this  
Followers 0
Firex

Need help with GEngin

9 posts in this topic

#1 ·  Posted (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 by Firex

Share this post


Link to post
Share on other sites



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 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by Firex

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by Decipher

Spoiler

censored.jpg

 

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Decipher,

Sorry, the source code private :C

But 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 by Firex

Share this post


Link to post
Share on other sites

Firex,

Please do tell.

Anonymous


Spoiler

censored.jpg

 

Share this post


Link to post
Share on other sites

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. :bye:

Anonymous


Spoiler

censored.jpg

 

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0