Skip to content

Privatize some ObjectBase members and cleanup with inline functions#470

Open
malleoz wants to merge 1 commit intovabold:mainfrom
malleoz:set_pos
Open

Privatize some ObjectBase members and cleanup with inline functions#470
malleoz wants to merge 1 commit intovabold:mainfrom
malleoz:set_pos

Conversation

@malleoz
Copy link
Collaborator

@malleoz malleoz commented Feb 9, 2026

No description provided.

Comment on lines +80 to +82
m_velocity.y *= -ACCELERATION;
if (m_velocity.length() < ACCELERATION * PIPE_SQRT_RADIUS) {
m_b0 = false;
Copy link
Owner

Choose a reason for hiding this comment

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

This still needs to be put behind the !(typeMask & KCL_TYPE_FLOOR) if statement.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Position is updated irrespective of the typeMask, so really we need to check:

if (typeMask & KCL_TYPE_FLOOR) {
    m_velocity.y *= -ACCELERATION;
    if (m_velocity.length() < ACCELERATION * PIPE_SQRT_RADIUS) {
        m_b0 = false;
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants