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

[jak3] Fix bomb bot bombs disappearing #3674

Merged
merged 1 commit into from
Sep 22, 2024
Merged

[jak3] Fix bomb bot bombs disappearing #3674

merged 1 commit into from
Sep 22, 2024

Conversation

water111
Copy link
Collaborator

@water111 water111 commented Sep 22, 2024

This is basically applying the same fix as vector<-cspace!, which we've been doing since jak 1.

They often make bugs where they use bones before they are properly initialized. On PS2, it's relatively harmless - it results in stuff going to the origin for 1 frame (where it collides with nothing, since the collide cache was filled somewhere else), then going back to normal.

On PC, using these uninitialized bones results in NaNs. This is because 0 * (1 / w) where w = 0 done in the update-transforms is NaN on PC, but 0 on PS2. These NaNs propagate to the velocity, and you get stuck with everything being NaN.

image

@water111 water111 linked an issue Sep 22, 2024 that may be closed by this pull request
@water111 water111 merged commit 4e33746 into master Sep 22, 2024
11 checks passed
@water111 water111 deleted the w/bone-nan-fix branch September 22, 2024 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[jak3] bombbot bombs don't spawn
1 participant