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

Missing surface flag logic #149

Open
vabold opened this issue Sep 26, 2024 · 0 comments
Open

Missing surface flag logic #149

vabold opened this issue Sep 26, 2024 · 0 comments
Labels
bug Something isn't working engine Code involving engine (C++) P2 Priority: Medium

Comments

@vabold
Copy link
Owner

vabold commented Sep 26, 2024

This is the current logic:

    if (state()->isTouchingGround()) {
        m_offRoad = true;
        m_groundBoostPanelOrRamp = true;
    }

    m_suspBottomHeightNonSoftWall = 0.0f;
    m_rampBoost = false;
    m_offRoad = false;
    m_trickable = false;
    m_notTrickable = false;

This is what it should be:

    if (state()->isTouchingGround()) {
        m_groundOffRoad = m_offRoad;
        m_groundBoostPanelOrRamp = m_boostPanel;
    }

    m_suspBottomHeightNonSoftWall = 0.0f;
    m_rampBoost = false;
    m_offRoad = false;
    m_trickable = false;
    m_notTrickable = false;

We're missing m_groundOffRoad and m_boostPanel. Implementation will find all discrepancies with the surface flags and correct them.

@vabold vabold added bug Something isn't working engine Code involving engine (C++) P2 Priority: Medium labels Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working engine Code involving engine (C++) P2 Priority: Medium
Projects
None yet
Development

No branches or pull requests

1 participant