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

[Build Actor] Assigning collision to a bone doesn't align unless bone at 0,0,0 #3708

Open
2 tasks done
Grateful-Forest opened this issue Oct 5, 2024 · 0 comments
Open
2 tasks done
Labels

Comments

@Grateful-Forest
Copy link

Acknowledgements

  • I have searched for duplicate or closed bug reports
  • I understand that I am supposed to provide my own legitimately obtained copy of the game

Describe the Bug

When assigning a collision primitive to a bone using it's bone index, the collision primitive will only be in the correct position if the base of the bone it's assigned to is located at 0,0,0 worldspace in Blender.

This means effectively, that only 1 bone in an armature can have collision meshes assigned to it.

If you set the primitive to a bone other than a bone at 0,0,0 worldspace, it will offset both the mesh collision location and it's collision sphere from it's typed coordinates, even though they are manually set. Manually balancing out the collision sphere location by typing the coordinates with the offset in mind, does not actually move the collision mesh back.

If you make your collision mesh visible, the visible mesh can be seen in the correct position, with its collision somewhere else separate from the visuals, which is interesting.

It's impossible to correct this without also breaking another one, since only one bone can be at 0,0,0 worldspace at a time.

How To Reproduce

Create an armature at a position other than 0,0,0 worldspace and assign a visual-only mesh to it with Automatic Weights.
Create a cube with collision and don't assign anything to it in Blender. Export GLB file with Custom Properties.
Set up a test actor with primitives and assign a primitive to one of the bone indexes on the armature.
Observe the offset in game (better to make the collision mesh visual as well)

Does this problem occur on original hardware or PCSX2?

Yes, it's unique to OpenGOAL

Expected Behavior

The offset is not minor and means only one bone in an armature can have a collision mesh on it

Environment Information

Using Blender 4.0

Game Version

NTSC 1.0 (black label)

Have you set the game to something other than 60fps?

No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

1 participant