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

Use modelToWorldVisualWorld #8489

Merged
merged 2 commits into from
Oct 10, 2021
Merged

Use modelToWorldVisualWorld #8489

merged 2 commits into from
Oct 10, 2021

Conversation

654wak654
Copy link
Contributor

When merged this pull request will:

  • Replace all AGLtoASL + modelToWorldVisual combinations with just modelToWorldVisualWorld to get an ASL position.

Clean-up after my discovery in #8488

@PabstMirror PabstMirror added this to the 3.14.0 milestone Oct 7, 2021
@PabstMirror PabstMirror added kind/cleanup Release Notes: **CHANGED:** kind/optimization Release Notes: **IMPROVED:** and removed kind/cleanup Release Notes: **CHANGED:** labels Oct 7, 2021
@@ -28,16 +28,16 @@ private _gunEnd = getText (_turret >> "gunEnd");
TRACE_3("", _pov, _gunBeg, _gunEnd);

// Pull the PIP pov or barrel direction, depending on how the model is set up
private _povPos = ATLtoASL (_vehicle modelToWorldVisual (_vehicle selectionPosition _pov)); //@todo AGLToASL ?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

old func: boat on the water it gave turret postASL as [1574.31,3870.15,-14.5889]
so great fix, but doesn't look like anything uses this func

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like CBA also has a much more intricate turretDir; though that is not used anywhere in ACE3 either.

@jonpas jonpas merged commit 2a7eb07 into master Oct 10, 2021
@jonpas jonpas deleted the use-modelToWorldVisualWorld branch October 10, 2021 13:37
AndreasBrostrom pushed a commit to AndreasBrostrom/ACE3 that referenced this pull request Dec 3, 2021
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/optimization Release Notes: **IMPROVED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants