+ Reply to Thread
Results 1 to 6 of 6

Thread: Vector Thrusters and Directional Vector Issues

  1. #1
    Wire Noob andrewmcwatters's Avatar
    Join Date
    Jan 2010
    Location
    Phoenix, Arizona
    Posts
    3

    Exclamation Vector Thrusters and Directional Vector Issues

    Hi, I'm just now finding in the current revision of Wire (rev 2064, at the moment of this post,) that my vector thrusters are not thrusting in the direction in which I send to the entity through its inputs. Is anyone else having this issue? My files are unmodified, and as a result, this is not the issue, nor will a new checkout resolve the problem.

    I've yet to look at the source code myself to determine the error in logic, as I'm on vacation, and had enough of scripting for a while.

    I've checked the table of the entity within the Lua environment to reference it's values to see if there is an issue regarding the inputs being stored incorrectly, however this is not the case, and using the Debugging STool, the values are indeed correct. My hypothesis is that the physics simulation part of the code is not correctly retrieving the stored values, or it's referencing the wrong ones.

    Thanks in advance.

  2. #2
    ส็็็็็็็็็็็็็็็็ส็็ ็็็็็ Dav1d's Avatar
    Join Date
    May 2009
    Posts
    1,118

    Default Re: Vector Thrusters and Directional Vector Issues

    Make sure you're using XYZ world and it should work correctly.

  3. #3
    Wire Noob andrewmcwatters's Avatar
    Join Date
    Jan 2010
    Location
    Phoenix, Arizona
    Posts
    3

    Default Re: Vector Thrusters and Directional Vector Issues

    That has nothing to do with the problem. You're assuming my desire is only to use world coordinates. Please do not reply unless you have knowledge of the game's libraries, Wiremod's internal functions, or are facing the same or a similar issue.

  4. #4
    Wire Sofaking Tasuit's Avatar
    Join Date
    Jan 2009
    Location
    Sønderjylland, Denmark
    Posts
    582
    Blog Entries
    9

    Default Re: Vector Thrusters and Directional Vector Issues

    Current pos - Destination pos = Directional vector to the target.

    Is that what your doing? Feeding it just world pos cords wont work.

    Creator of the Unofficial servers

  5. #5
    Spucatum Tauri Bull's Avatar
    Join Date
    Jun 2008
    Location
    Finland
    Posts
    6,010

    Default Re: Vector Thrusters and Directional Vector Issues

    Vector thrusters have worked perfectly for ages and there have been no reports of it not working.
    My hypothesis is that your usage of the vector thruster is not correct.

    Post exactly what you are trying to do.
    My signature has a point.
    Quote Originally Posted by Squeakyneb View Post
    when l3ulletje says do it, do it.
    That

    Quote Originally Posted by Anticept View Post
    By the way, Bull is in charge.

  6. #6
    Wire Noob andrewmcwatters's Avatar
    Join Date
    Jan 2010
    Location
    Phoenix, Arizona
    Posts
    3

    Default Re: Vector Thrusters and Directional Vector Issues

    Quote Originally Posted by Tasuit View Post
    Current pos - Destination pos = Directional vector to the target.

    Is that what your doing? Feeding it just world pos cords wont work.
    Thanks, ignorantly, I wasn't creating a normalized vector. I haven't played in years; mostly been developing for the game. I suppose my first unconscious assumption when I came back to the game was that the internal code was prewritten to generate a normalized vector based on the thruster's location and then the world position which was fed.

    Many thanks.

+ Reply to Thread

Tags for this 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
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots