Report this content
We want the Dreams coMmunity to be a safe, diverse and tolerant place for everyone, no matter their age, gender, race, sexual orientation or otherwise. If you believe this content to contradict these principles, you can file a report for our coMmunity teams to investigate.
Note that misuse of the reporting tool will not be tolerated.Item being reported:
I'll have a look into how the logic of this might look. A couple of hints while I think of them though:
Calculators can handle doing math to fat wires, giving a fat wire result with the operation done on each individual value. So calculating (1, 2, 3) + (5, 7, 9) will give you the fat wire (6, 9, 12). Makes mathing-up fat wires super easy.
The look-at rotators--and I think simple movers--can take a 3D "direction," which doesn't mind if the vector is normalised or not. So I'm guessing your logic for figuring this out for the left stick would work for snapping the vector for an NPC also.
Alternative to the pure-math route for snapping would be to make a rig that uses the look-at rotator to rotate a sculpt according to the left stick. Then you could set up trigger zones and such in different areas to know the stick is pointing in that general direction, and use that to dictate which of the 8 directions it should move in. Might be overkill, particularly if you've got the maths the way you like it. But just an alternative thought.