Make sure to format your code, it’s hard go through it, if you can paste the relevant line with the error that would help too
I believe the invalid .x
is from direction
? but I don’t see anything wrong with it in your original post, maybe an update to the code is in order?
1 Like