I often give up on projects that require me to know yaw, or gforces. At the moment I'm trying to use print in a controller to get either of these values in lua, can anyone help? Please keep in mind that I know very little about lua
I was able to get g forces, but yaw would be a lot more usable. I could calculate yaw if I was to get the vehicle's rotation and somehow compare it to the vehicle's velocity vector... I'm beyond my understanding of lua with this though
There should be UI elements in-game that present both Yaw and Pitch of the vehicle. Perhaps you could check the Yaw in the HTML to see what variable it's reading from as it has to be coming from somewhere else.
I get roll pitch and yaw by this: Code: local roll, pitch, yaw = obj:getRollPitchYaw() posture.roll = roll posture.pitch = pitch posture.yaw = yaw