Components with COMPONENT.Positions angles at anything other than (0,0,0) can have issues when being rotated
noble-ux opened this issue · comments
Expected Behaviour
Components with COMPONENT.Positions set at something other than (0,0,0) should be able to be rotated via EMV.Auto without issue.
Actual Behaviour
If a component has a Position set as something else ,ie: (0,-90,0), it will rotate at odd angles. In the case of (0,-90,0) it will bug out when X is changed: Ang = Angle( X, 0, 0 )
Error Messages (if any)
N/A
Steps to Reproduce
- Spawn a vehicle with a Whelen 600 component
- Attempt to rotate the component via X: Angle( X, 0, 0 )
- Profit
Details
- Source (Workshop / Github): Both
"it's an issue with the translation algorithm i used" - schmal
A'ite, I've spent a few days on this.
The issue seems to be a disconnect in how props are placed, vs how sprites are rendered. I've gotten very close a number of times, but then been unable to do the final part.
This may be impossible to fix without some serious maths, which I don't have the ability to handle personally.