I’m trying to find the 3d vector that is parallel to the local y-axis of a python controlled game object (relative to the global axis). If that isn’t easy, the alternative is to find the equation of the line of the local y-axis in global units OR to get a point that is like [0,1,0] local from the center of the object, but expressed in the global coordinates. From this, the vector could also be calculated.
in case that’s a bit confusing, let me clarify:
if an object has y axis the same as the global y axis, python would return [0,1,0], a point/position vector that goes just along the y axis. But if the object were rotated 90 degrees and the local y axis were in line with the global x axis, it would return [1,0,0] as the position vector/point, which would tell me “the local y axis of the object goes directly along the global x-axis”
I’ve seen somewhere the use of “object.y” for dealing with aspects of a local axis of an object, but I just don’t know how it works. It’s also possible this is incredibly simple and I’m overlooking an easy function, but I just don’t know Any help would be appreciated!