Results 1 to 4 of 4
  1. #1
    Boomshot
    Join Date
    Apr 2004
    Posts
    2,159

    Default Drawing lines between vectors

    I'm unfamiliar with vector math and such, so please bear with me.

    How would I go about drawing a line between two vectors?

  2. #2
    Redeemer
    Join Date
    Sep 2002
    Location
    Ireland
    Posts
    1,158

    Default

    Possibly clarify a bit more on that or give a descriptive explanation of what it is you want to do? I 'think' I know what you mean but am not sure, anyway here are some usefull links.

    http://wiki.beyondunreal.com/wiki/Vector
    http://wiki.beyondunreal.com/wiki/Un...t_Vector_Maths

  3. #3
    Boomshot
    Join Date
    Apr 2004
    Posts
    2,159

    Default

    I have two vectors and I need to draw some sort of line onscreen linking their two positions.

    (Actor.DrawDebugLine, but more reliably and hopefully faster )

  4. #4
    Redeemer
    Join Date
    Sep 2002
    Location
    Ireland
    Posts
    1,158

    Default

    Hmm...You could use an emitter (such as that used by the link gun) to draw a line between them OR you could try using an interaction and using the function WorldToScreen if you aboloutly must use the canvas. (if you want a direction vector of one pointing to the other it's simply Location1-Location2)

    Handy thing is you will find functions to do the complicated math stuff you want most of the time unless your really digging into something very complicated.


 

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.