Results 1 to 4 of 4
  1. #1
    JuJuBoSc
    JuJuBoSc is offline
    New member
    Join Date
    2012 Apr
    Posts
    9
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    1
    Thanked in
    1 Post
    Rep Power
    0

    [C#] How TERA calcul distance between 2 Vector3D

    Reversed from the function that set the crosshair distance, here is the C# implementation of what it do exactly :

    Code:
                    float dx = X1 - X2;
                    float dy = Y1 - Y2;
                    float dz = Z1 - Z2;
    
                    double distance = Math.Sqrt((double)((dx * dx) + (dy * dy) + (dz * dz)));
    
                    distance = Math.Floor(distance);
                    distance = Math.Ceiling(distance * 0.04);
    I'm sure it will be usefull for someone else

  2. The Following User Says Thank You to JuJuBoSc For This Useful Post:


  3. #2
    h4x0r
    h4x0r is offline
    h4x0r's Avatar
    Join Date
    2011 Aug
    Location
    ..\root\home\pgc
    Posts
    826
    Thanks Thanks Given 
    64
    Thanks Thanks Received 
    525
    Thanked in
    205 Posts
    Rep Power
    14

  4. #3
    SheppeR
    SheppeR is offline
    New member
    Join Date
    2012 Apr
    Posts
    21
    Thanks Thanks Given 
    3
    Thanks Thanks Received 
    2
    Thanked in
    2 Posts
    Rep Power
    0
    nice
    Teach h4x0r for c# xD

  5. #4
    h4x0r
    h4x0r is offline
    h4x0r's Avatar
    Join Date
    2011 Aug
    Location
    ..\root\home\pgc
    Posts
    826
    Thanks Thanks Given 
    64
    Thanks Thanks Received 
    525
    Thanked in
    205 Posts
    Rep Power
    14
    Yeah. My friend teach you :X


Similar Threads

  1. TERA Offsets
    By hounder in forum TERA Bots, Hacks, Cheats
    Replies: 60
    Last Post: 2017-01-16, 07:37 PM
  2. [Request] Bot TERA
    By BmHeros in forum TERA Bots, Hacks, Cheats
    Replies: 19
    Last Post: 2013-04-18, 11:17 PM
  3. [Offsets] TERA 1.0.25
    By JuJuBoSc in forum TERA Bots, Hacks, Cheats
    Replies: 2
    Last Post: 2012-05-04, 12:54 AM
  4. [Info] Tera online
    By myself in forum TERA Guides, Tutorials
    Replies: 3
    Last Post: 2012-01-30, 02:17 PM
  5. Tera online
    By svish in forum Games Lounge
    Replies: 9
    Last Post: 2011-04-01, 03:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •