I am running into an odd behavior on BeamNG 0.24. Only X is being updated on the "position" vec3 in the "Set Object Field" node. I am feeding proper vec3 data into the pin from Get Vehicle Data/position: However, only X is being updated on the Object - Y and Z are being set to 0. So when the vehicle moves, it only moves along the X-axis. Is there something else I need to set to make this update properly? Y and Z are forced to 0 value and I am unsure why. Any help is appreciated!
Ok... the "bug" is still there but I was able to work around this by creating my own node which accepted the position vector (copied from lua\ge\extensions\flowgraph\nodes\scene\setObjectField.lua). Now the object is following the position and rotation of the vehicle. Hope this helps.
The bug isn't your fault but because the string representation of the vector inserted into the obj:setField function includes commas between the vector values when it should just be spaces. So instead of this at line 34 in setObjectField.lua: Code: val = table.concat(val,', ') It should be this: Code: val = table.concat(val,' ')
Thanks! My eyes glaze over when it comes to debugging code and I ended up re-inventing the wheel... I'll try this out.
Sorry, I forgot to close the loop on this one - I changed the code in setObjectField.lua as suggested by angelo234 and that resolved the issue. Thank you!