View Full Version : Drawing lines between vectors
12-20-2004, 11:25 PM
I'm unfamiliar with vector math and such, so please bear with me. :)
How would I go about drawing a line between two vectors?
12-21-2004, 10:36 AM
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.
12-21-2004, 01:12 PM
I have two vectors and I need to draw some sort of line onscreen linking their two positions. :p
(Actor.DrawDebugLine, but more reliably and hopefully faster :D)
12-21-2004, 01:17 PM
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.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.