Make sure you're using XYZ world and it should work correctly.
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.
Make sure you're using XYZ world and it should work correctly.
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.
Current pos - Destination pos = Directional vector to the target.
Is that what your doing? Feeding it just world pos cords wont work.
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.
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.
Bookmarks