Add physics to animation from blender ? #70
-
Is it possible to add physics to an object which is animated from blender to allow collision between meshes ? Thank you for your great work! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
That would be an amazing feature - I think it might surpass the capabilities of just about every game engine if we could have morphing collision meshes! Unfortunately, I don't think that's on the horizon. I've wanted to make a cannon'd snake model that internally uses the same sort of constraints as in the chain demo, but I don't think that's what you're suggesting. If you are asking if it is possible to animate a glTF import and to add a physics mesh to it, then yes, that is possible. Here's a quick illustration of glTF animation and physics, using the cannon ping pong and r3f text demos. https://codesandbox.io/s/a-more-cruel-ping-pong-4geih?file=/src/Bird.js |
Beta Was this translation helpful? Give feedback.
That would be an amazing feature - I think it might surpass the capabilities of just about every game engine if we could have morphing collision meshes! Unfortunately, I don't think that's on the horizon.
I've wanted to make a cannon'd snake model that internally uses the same sort of constraints as in the chain demo, but I don't think that's what you're suggesting. If you are asking if it is possible to animate a glTF import and to add a physics mesh to it, then yes, that is possible.
Here's a quick illustration of glTF animation and physics, using the cannon ping pong and r3f text demos.
https://codesandbox.io/s/a-more-cruel-ping-pong-4geih?file=/src/Bird.js