How do I figure out what Z-Angle (pitch) I need to be at in order to face a target? menu

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 16 of 16
  1. #16
    jbrauman's Avatar Member
    Reputation
    65
    Join Date
    Dec 2007
    Posts
    72
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Gamer View Post
    Although this has been pretty well addressed already, I thought I should post as the problem is actually very simple conceptually.

    First, forget about the z axis, and work out your horizontal distance from the object using simple pythagoras.

    eg. You are are (100,100), your target is at (200,200).

    Distance = √( (200-100)^2 + (200-100)^2)
    (Horizontal) Distance = √(200)

    Now, suppose your z value is 100, and your target's is 200. Vertical distance is (200-100) = 100. Therefore you have a simple right angled triangle.



    Using inverse tan you can find the required angle.

    So breaking up a 3d problem into 2 2d ones makes it much simpler.
    Hopefully this post helped.
    Gamer that is fantastic thank you.

    Same with everyone else that replied.

    How do I figure out what Z-Angle (pitch) I need to be at in order to face a target?
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Need Helping Figuring Out What Clothes
    By Gummibär in forum Community Chat
    Replies: 10
    Last Post: 07-12-2009, 04:35 PM
  2. Is it possible to figure out what texture a item use?
    By Omahz in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 06-09-2009, 11:24 AM
  3. I can't figure out whats wrong with...
    By V1cinity in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 07-20-2007, 04:25 PM
  4. Figure out what it says (Hard)
    By Enfeebleness in forum Community Chat
    Replies: 13
    Last Post: 07-13-2007, 05:35 PM
  5. Figure Out What This Says, And Dont Win Anything!
    By XaVe in forum Community Chat
    Replies: 7
    Last Post: 07-12-2007, 04:35 PM
All times are GMT -5. The time now is 12:29 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search