+ Reply to Thread
Results 1 to 2 of 2

Thread: Vector Math

  1. #1
    Wire Amateur Paradukes's Avatar
    Join Date
    Apr 2007
    Location
    I could tell you, but then I'd have to track you down and make sure you don't talk...
    Posts
    30

    Thumbs up

    I've been planning on getting back into Lua coding since G-Mod 10 came out, but it's taken me a while to get started. I figure I may as well try messing around with wired guidance, but I need to know about vectors first (I remember starting to learn about this stuff when I was coding for G-Mod 9).

    What would the code be to rotate an object to face a specific point, given by X,Y,Z coordinates?
    When you laugh in the face of Death, ask yourself one thing: is Death laughing with you, or at you?

  2. #2
    Expressionism 2.0 Syranide's Avatar
    Join Date
    Mar 2007
    Location
    Sweden
    Posts
    4,573

    Default

    I've been planning on getting back into Lua coding since G-Mod 10 came out, but it's taken me a while to get started. I figure I may as well try messing around with wired guidance, but I need to know about vectors first (I remember starting to learn about this stuff when I was coding for G-Mod 9).

    What would the code be to rotate an object to face a specific point, given by X,Y,Z coordinates?[/b]
    I'm guessing settings its angle vector to X,Y,Z?

+ Reply to Thread

Similar Threads

  1. Making a exprssion math into cpu math
    By Ronin in forum CPU, GPU, and Hi-speed Discussion & Help
    Replies: 5
    Last Post: 06-03-2008, 07:09 PM
  2. help with the math of a spring
    By sexiewasd in forum Installation and Malfunctions Support
    Replies: 1
    Last Post: 03-09-2008, 04:02 AM
  3. some math help
    By nanotech fur in forum Installation and Malfunctions Support
    Replies: 1
    Last Post: 10-07-2007, 06:45 AM
  4. Math help
    By Crimson in forum Installation and Malfunctions Support
    Replies: 10
    Last Post: 09-22-2007, 10:10 AM
  5. Math Help and How-Tos
    By bprater in forum Installation and Malfunctions Support
    Replies: 1
    Last Post: 05-21-2007, 05:07 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
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots