Closed gRichardson108 closed 2 years ago
The idiomatic way to do this is by having a tool script assigned to your point class, having it read the angle
property at build time (i.e. in the setter for an exported properties
dictionary which Qodot will write to) and applying it to your instanced scene form there.
Not every point class is going to use angle
as yaw - one example being the light
class using it for spotlight angle, and instead using the mangle
property to store euler rotation - so having QodotMap apply it globally as you suggest is a naive solution that will break more than it fixes.
I noticed that 'angle' wasn't being parsed in qodot_map.gd for my scenes instanced by QodotFGDPointClass instances. I had to add some code to get it working on my end like this:
Sorry this isn't just a pull request. I wanted to document before I forget about it. I'm wondering if I'm nuts and missing something, or if nobody really uses point classes enough in a way that the rotation matters?