Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Animated GLTF models issue #179

Open
netgfx opened this issue Nov 22, 2020 · 1 comment
Open

Animated GLTF models issue #179

netgfx opened this issue Nov 22, 2020 · 1 comment

Comments

@netgfx
Copy link

netgfx commented Nov 22, 2020

Animated models do not receive collisions with either dynamic or static body type. Also shape property doesn't seem to be doing something. Am I missing something or is it not supported?

@gftruj
Copy link
Contributor

gftruj commented Nov 27, 2020

As for primitive shapes I think it's because of the same reason why bounding boxes of skinned meshes are off (see this SO answer). If you'd like a collision box which updates itself with the model animation I can re-use what I've done in the said SO thread and make a component out of it.

Although I personally would try using some collision boxes attached to certain bones. It would be more accurate, and less heavy. Actually this could be an idea for another component mapping shapes to bones 😄

edit
A component which will create colliders for bones seemed like a neat idea so I've made a one. You can see it working here or here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants