+ Reply to Thread
Results 1 to 5 of 5

Thread: Player direction - facing direction.

  1. #1
    Rift Disciple Silir's Avatar
    Join Date
    Mar 2011
    Posts
    134

    Default Player direction - facing direction.

    Is there a way to see which way the player is facing? For bonus points - including up / down?

    Failing that, is there a way to accurately guess this? Or is there an Addon that does the guessing fairly well?

  2. #2
    Shadowlander
    Join Date
    Mar 2011
    Posts
    47

    Default

    It's not something that's exposed to us via the API. You'll have to guess.

    I've got some guess code in Resource Radar (Curse) for displaying minimap icons around you that rotate as you move. It assumes that you're generally moving forward. If you strafe or move backwards, it'll be wrong until you move forward again. Feel free to use any code from that if it's useful.

    I believe Adelea's using a similar idea in ResourceTracker (Curse).

    As for camera angle vs facing, I have no idea how to even start guessing at that one.

  3. #3
    Rift Disciple Silir's Avatar
    Join Date
    Mar 2011
    Posts
    134

    Default

    I had a go at this, and decided it was too hard. Since sometimes the player would be walking backwards and it's just hard to guess where the player's facing.

    Still want this feature. But I'm going to wait for the API update to add this later.

  4. #4
    Soulwalker
    Join Date
    Jul 2011
    Posts
    12

    Default

    Quote Originally Posted by Silir View Post
    I had a go at this, and decided it was too hard. Since sometimes the player would be walking backwards and it's just hard to guess where the player's facing.

    Still want this feature. But I'm going to wait for the API update to add this later.
    Same for me. Or declare the addon "NOT FOR STRAFERS AND BACKPADDLERS"

  5. #5
    Rift Disciple Silir's Avatar
    Join Date
    Mar 2011
    Posts
    134

    Default

    I'd hope Inspect.Player.Detail().Facing or a new Inspect.Camera.Detail() would give me what I want really quick.

    *nudge nudge*

+ Reply to Thread

Bookmarks

Posting Permissions

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