Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Components with COMPONENT.Positions angles at anything other than (0,0,0) can have issues when being rotated #98

Open
noble-ux opened this issue Dec 2, 2019 · 1 comment
Assignees
Labels
bug Something's broken that shouldn't be.

Comments

@noble-ux
Copy link
Member

noble-ux commented Dec 2, 2019

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

  1. Spawn a vehicle with a Whelen 600 component
  2. Attempt to rotate the component via X: Angle( X, 0, 0 )
  3. Profit

Details

  • Source (Workshop / Github): Both
    "it's an issue with the translation algorithm i used" - schmal
@noble-ux noble-ux added the bug Something's broken that shouldn't be. label Dec 2, 2019
@JoshPiper JoshPiper self-assigned this Dec 17, 2021
@JoshPiper
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something's broken that shouldn't be.
Projects
None yet
Development

No branches or pull requests

2 participants