Results 1 to 3 of 3
  1. #1
    MSgt. Shooter Person
    Join Date
    Apr 2012
    Posts
    81

    Default Select Objects wth Mouse Cursor

    I want to select Objects such as Pawns or Actors in my Game with my Mouse Cursor.
    The command of selecting them can be by Mouseover or clicking right Mousebutton over this Object.
    I have already found some Tutorials about creating a MouseCursor or a Hud but i dont know how to get to the point where ask if my MouseCursor Position hit the Object.

    Perhaps there more than one opportunity to manage this. Perhaps by creating a Vector from my MouseCursor to this Object or something else with collision or trace.

  2. #2
    MSgt. Shooter Person
    Join Date
    Jun 2009
    Posts
    399

    Default

    Basically, you need to Project and DeProject the mouse cursor coordinates to and from world coordinates.

    Project

    native final function Vector Project (Vector location)
    Converts global (world) coordinates to local (screen) coordinates.
    DeProject

    native final function Vector DeProject (Vector location)
    Converts local (screen) coordinates to global (world) coordinates.
    With these vectors you can do a trace check.

    You can check these gems on UDN for more information how to do it:
    http://udn.epicgames.com/Three/Devel...Interface.html
    http://udn.epicgames.com/Three/Devel...rBrackets.html

  3. #3

    Default

    UDK > HD point& Click by 'Hassang'[i think]
    * it will contain some helpful info if you understand code.

    http://www.hassang.com/udk-point-and-click-source-code


    - this also might help- it sounds useful
    http://forums.epicgames.com/threads/...-and-Functions.

    - and remember UT3 is not UDK
    Last edited by TKBS; 04-05-2012 at 02:06 PM.


 

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
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.