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

Finalize "Update vector processing" (#5061) #6438

Merged
merged 52 commits into from
Oct 23, 2024

Commits on Sep 7, 2024

  1. Increase quaternion support

    Hdt80bro authored and lL1l1 committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    43cfc27 View commit details
    Browse the repository at this point in the history
  2. Figure out quaternions

    Hdt80bro authored and lL1l1 committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    81a95af View commit details
    Browse the repository at this point in the history
  3. Use correct QuatFromRotation

    Hdt80bro authored and lL1l1 committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    eb673f4 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2024

  1. Transfer StructureUnit changes to new file structure

    Changes from old `defaultunits.lua` file (before rebase) to new `StructureUnit.lua` file:
    Remove old quaternion import from `StructureUnit.lua` and `defaultunits.lua`
    Use quotes instead of colons for import string
    Use quat multiplication in structure rotation to fit terrain
    lL1l1 committed Sep 8, 2024
    Configuration menu
    Copy the full SHA
    2db807c View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2024

  1. Configuration menu
    Copy the full SHA
    46e3a99 View commit details
    Browse the repository at this point in the history
  2. Clean up the debugging

    lL1l1 committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    b93c634 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1a0395e View commit details
    Browse the repository at this point in the history
  4. Correct CreateUnit2 annotation

    lL1l1 committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    c72c26b View commit details
    Browse the repository at this point in the history
  5. Add Unit rotation function descriptions

    They have some unexpected behavior not preserving roll/pitch
    lL1l1 committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    7be5604 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    12a33a8 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3a59130 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    0039842 View commit details
    Browse the repository at this point in the history
  9. Fix changes in GetTrueEnemyUnitsInSphere

    Fix checking unit being in the same army
    Use PosXYZ to avoid table allocation
    Fix being able to call `EntityCategoryContains(nil, unit)`
    Move category check before distance calculation
    lL1l1 committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    3819a21 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    f4c8498 View commit details
    Browse the repository at this point in the history
  11. Inline GetVectorLength in NormalizeVector

    saves 3 table calls
    lL1l1 committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    92b47d4 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    0858db2 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    4c2aba0 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    108bed5 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    447e649 View commit details
    Browse the repository at this point in the history
  16. Calculate DotP in Lua

    lL1l1 committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    4d0045d View commit details
    Browse the repository at this point in the history
  17. upvalue math.acos

    lL1l1 committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    b4aa152 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    6ece6c0 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2024

  1. Add DotP annotations

    lL1l1 committed Sep 12, 2024
    Configuration menu
    Copy the full SHA
    24ec327 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    831a75f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1813215 View commit details
    Browse the repository at this point in the history
  4. Replace vector rotation in OnTrackTargetGround

    `Projectile.lua`'s `OnTrackTargetGround`
    lL1l1 committed Sep 12, 2024
    Configuration menu
    Copy the full SHA
    faf94ee View commit details
    Browse the repository at this point in the history
  5. OnTrackTargetGround Debug setup

    Use `dbg c` in console to see hitboxes then spawn vipers shooting at a target and make sure the lines end within the target hitbox.
    lL1l1 committed Sep 12, 2024
    Configuration menu
    Copy the full SHA
    b8e006b View commit details
    Browse the repository at this point in the history
  6. Revert "OnTrackTargetGround Debug setup"

    This reverts commit b8e006b.
    lL1l1 committed Sep 12, 2024
    Configuration menu
    Copy the full SHA
    10eb507 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    35cf83e View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2024

  1. Configuration menu
    Copy the full SHA
    fdfbcd9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1b0fac8 View commit details
    Browse the repository at this point in the history
  3. Fix /benchmarking/controller.lua

    was non functioning mostly due to lazyimport addition and repr changes
    
    Also updates the individual benchmark to simply require the benchmark file name and then run all the functions inside automatically
    lL1l1 committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    0875635 View commit details
    Browse the repository at this point in the history
  4. Benchmark VDist3

    Upvalued engine function `VDist3` is usually the fastest
    lL1l1 committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    639321e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c5d20e0 View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2024

  1. Try fixing string.spec.lua test

    by adding Vector2 global
    lL1l1 committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    fd23a65 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6966dfe View commit details
    Browse the repository at this point in the history
  3. Fix GetTerrainSlopeAngles returning roll on -Z axis

    Make it return `angleX` aka roll on the +Z axis instead of the -Z axis
    Also add comments explaining the negations of angles on the negative axes
    lL1l1 committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    5edb06d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8896134 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    81f7d2d View commit details
    Browse the repository at this point in the history
  6. Correct rotation order in Unit:Rotate

    It doesn't matter since it's a 2d rotation, but in case anyone is inspired by the function to use a quaternion for 3d rotation, the order should be correct.
    lL1l1 committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    5b2ef6c View commit details
    Browse the repository at this point in the history
  7. Correct rotation order in ScenarioUtilities.CreateWreckage

    Matches original manual quaternion multiplication's rotation order
    lL1l1 committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    bdb7c9a View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a7667a3 View commit details
    Browse the repository at this point in the history
  9. Small bytecode optimisation in GetTerrainSlopeAngles

    use `SUB` instead of `UNM` and `ADD`
    lL1l1 committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    43ab36b View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    b0ffe4c View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2024

  1. Configuration menu
    Copy the full SHA
    f67d7d6 View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2024

  1. Configuration menu
    Copy the full SHA
    56e51dd View commit details
    Browse the repository at this point in the history
  2. Add changelog snippets

    lL1l1 committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    bf628af View commit details
    Browse the repository at this point in the history
  3. Upvalue globals in utils

    get/set metatable, rawget
    lL1l1 committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    b04cfa5 View commit details
    Browse the repository at this point in the history
  4. Optimize vector_metatable.__add

    lL1l1 committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    0a02519 View commit details
    Browse the repository at this point in the history
  5. Add vector_metatable.__sub

    lL1l1 committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    a1a3756 View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2024

  1. Configuration menu
    Copy the full SHA
    d7a5a5a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    19f575a View commit details
    Browse the repository at this point in the history