-
Notifications
You must be signed in to change notification settings - Fork 3
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
Offsets and sizing of shapes / Compound colliders #2
Comments
Yeah, I wish Blender had more explicit control over the shapes but you can supply a proxy geometry:
Then, to export, the glTF exporter's "Limit to Renderable Objects" option doesn't have a way to exclude the mesh, but still include extension data (this is a limitation I'd like to fix,) so I've just been assigning an "invisible" material to those proxy meshes. Maybe as a temporary workaround, I could add a "this mesh is physics-only" to the Blender Physics panel? |
Ah, that's clever. I didn't think of the compound parent method so I was lost on how to add the rigid body properties to the parent but the shape only on the child. I think having a separate entry in the physics properties that you can enable a "Collider" instead of "Rigid Body" would be ideal, though I understand that's probably a lot more work to implement. |
I've noticed that when importing a glTF file where a node has a mesh, a rigidbody and a bunch of child nodes with a collider, the imported scene in Blender contains objects for each of the child nodes, but none of those objects have the rigidbody constraint applied, I suppose because they don't have a mesh of their own and Blender won't let us set it in that case? Do you have any plans to deal with this or is there some existing workaround? |
That sounds like a bug for sure. I try to convert to the Blender representation when importing, but it's entirely possible I've missed something. Just so I can reproduce it, you've got something like:
And the "Child" node doesn't have any physics info? |
Yes, the child doesn't have a mesh, so in blender it's a basic node, which can't have a rigidbody constraint. It doesn't even appear in the menu. Here's the file I was looking at: I can't share a screenshot right now since blender broke on my system with the update to 4.0.1 (sigh). |
So it seems that Blender does not allow one to set a custom size or offset for the physics shapes, which makes them completely useless if your object origin doesn't also happen to align with the centre of your intended physics shape, or if the intended bound of the shape should not just match the geometry.
Any ideas on how to tackle this problem?
The text was updated successfully, but these errors were encountered: