Unit Rotation in Transport menu

Shout-Out

User Tag List

Results 1 to 4 of 4
  1. #1
    imzz's Avatar Active Member
    Reputation
    24
    Join Date
    May 2011
    Posts
    34
    Thanks G/R
    40/17
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unit Rotation in Transport

    wowclassic [3.4.2.50664]
    a small question very confused

    In Transport i can get the real location

    Code:
    public override Location Location
    {
               get
                {
                    Location ret = new Location(X, Y, Z);
                     if (InTransport)
                    {
                     var  t = new PGameObject(TransportGuid);
                     var pos = ret.Transform(t.WorldMatrix);
                     return pos;                
                    }
                    return ret;
                }
    } 
    
    
     public Location Transform(Matrix4 matrix)
     {
        
    
         var v = new Location(0, 0, 0)
         {
    
             X = X * matrix.xx + Y * matrix.xy + Z * matrix.xz + matrix.xw,
             Y = X * matrix.yx + Y * matrix.yy + Z * matrix.yz + matrix.yw,
             Z = X * matrix.zx + Y * matrix.zy + Z * matrix.zz + matrix.zw
         };
         return v;
     }
    But the Rotation value is a fixed value, While the ship is moving the character is still。
    Facing direction is wrong,
    so how do I get it Just like on land.?
    I use Rotation= [[base + 0xF0] + 0x30]
    HELP!!!
    Last edited by imzz; 08-25-2023 at 09:27 AM.
    回首向来萧瑟处,归去,也无风雨也无晴。

    Unit Rotation in Transport
  2. #2
    charles420's Avatar Elite User
    Reputation
    335
    Join Date
    Jun 2009
    Posts
    337
    Thanks G/R
    25/123
    Trade Feedback
    0 (0%)
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    i personally use on transport like ship or fp check and loop check to get cords as land besides elevators ships did something funky tho if i recall without looking tho

  3. #3
    imzz's Avatar Active Member
    Reputation
    24
    Join Date
    May 2011
    Posts
    34
    Thanks G/R
    40/17
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Like LAZYBOT walking。In Strand of the Ancients Battleground ,When first got off the ship TO the land,to Nex tWaypoint.
    need the FACE TO, if the Rotation is wrong,It's going in the wrong direction.

    Is there a way to calculate the Rotation of the world using Matrix4 information?I don't know anything about Matrix4。
    Last edited by imzz; 08-25-2023 at 08:47 PM.
    回首向来萧瑟处,归去,也无风雨也无晴。

  4. #4
    Razzue's Avatar Elite User Avid Ailurophile

    CoreCoins Purchaser Authenticator enabled
    Reputation
    398
    Join Date
    Jun 2017
    Posts
    608
    Thanks G/R
    193/283
    Trade Feedback
    2 (100%)
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by imzz View Post
    Like LAZYBOT walking。In Strand of the Ancients Battleground ,When first got off the ship TO the land,to Nex tWaypoint.
    need the FACE TO, if the Rotation is wrong,It's going in the wrong direction.

    Is there a way to calculate the Rotation of the world using Matrix4 information?I don't know anything about Matrix4。
    There's a thread around here (think like 10-15 pages back) where the OP describes the same issue, and how he "fixed" it, I'll see if I can find the link later.

    If you ever figure it out please let us know While translating my position works fine, I also struggle with rotation translation
    "May all your bacon burn"

Similar Threads

  1. [PE] Rotation isn't showing up in Custom Rotations in-game
    By TheQt in forum WoW Bots Questions & Requests
    Replies: 5
    Last Post: 10-27-2014, 04:18 PM
  2. Bug with Position & Angle in Transport
    By Torpedoes in forum WoW Memory Editing
    Replies: 2
    Last Post: 03-31-2014, 07:28 AM
  3. [Lua Script] how can I use more "Unit"s in one LUA file
    By Gix85 in forum WoW EMU Questions & Requests
    Replies: 5
    Last Post: 06-27-2011, 02:00 AM
  4. Check whether the unit is in visual range?
    By zys924 in forum WoW Memory Editing
    Replies: 8
    Last Post: 10-06-2010, 05:44 AM
  5. minimap unit tracking in game [release]
    By MindChild in forum World of Warcraft Bots and Programs
    Replies: 33
    Last Post: 12-12-2008, 06:23 PM
All times are GMT -5. The time now is 10:49 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search