1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. I will no longer be hosting XLNation as of March 1, 2017. Unless some one steps forward to take over the domain name and provide hosting XLNation will shutdown. If you are seriously interested in taking on this project and can technically and financially support the project please contact me.

Rotation: How Do I Calculate The Right Rotation?

Discussion in 'Modding Help Quarter' started by OokamiChan, Sep 7, 2014.

  1. OokamiChan

    OokamiChan Unskilled Worker

    Joined:
    Aug 25, 2014
    Messages:
    21
    Likes Received:
    7
    I wonder how I calculate the right rotation for a road buildings plug?

    Trail and error is taking to long time. Even if one only use 90 degree turn on each axle, change settings, pack the patch, start the game, start map, test, quit, even it all that only take 3 min per time I will have to do it 64 times, and that is more then 3 hours worth of testing.

    I do hope there is some one that have easy or complex equations, for me to use. Then I wold be happy.

    When one look at quarterninions on wiki there is so much information that I don't realy now what to use.

    Regards
    OokamiChan
     
  2. pauliaxz

    pauliaxz Mayor

    Joined:
    Aug 23, 2014
    Messages:
    394
    Likes Received:
    422
    Could you explain better what your problem is? Do you have problems with plugs of roads or plugs of buildings? Any pictures?
     
  3. OokamiChan

    OokamiChan Unskilled Worker

    Joined:
    Aug 25, 2014
    Messages:
    21
    Likes Received:
    7
    Plug of road <-> plug road building.
    The road plug have one rotation and that will not change.
    But the rotation for the plug on road buildings change depending on x, y, z coordinates that the plug is sitting on.
    So plug A have x=-5 y=40 and z=0, Plug B have x=5 y=40 z=0. Even if both plugs is on the top end of the road building won't mean that plug A and plug B will have the same rotation. It depends also on witch end of the road that is connecting to the road building plug, top or bottom.

    A week ago I did some testing and after around 1 hour and 1/3 of all possible settings, I hoped 90 degree per rotation, I did find 5 possible settings that worked for the same plug and there is possible 1 to 3 more settings that I didn't find.

    I just wish to have an equation that will let me calculate the different rotations with out an trail and error approach, or as few trail and error as possible.

    Regards
    OokamiChan
     
  4. pauliaxz

    pauliaxz Mayor

    Joined:
    Aug 23, 2014
    Messages:
    394
    Likes Received:
    422
    Post few pics, because I still can't understand what you mean...
     
  5. OokamiChan

    OokamiChan Unskilled Worker

    Joined:
    Aug 25, 2014
    Messages:
    21
    Likes Received:
    7
    Sorry for the long replay. I'm trying to make the pictures, so far I have one of where the rotation is wrong. I hope to get one or two more soon.

    Regards
    OokamiChan
     

Share This Page