-
Notifications
You must be signed in to change notification settings - Fork 184
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
More Metal Like Deforms on Meshes #36
Comments
You are free to implement this if you wish, but I'm not going to commit to extending the damage system like this. One thing you might want to try is using quaternions to deal with twisting or rotating vertices around a point or axis. This example is derived from my recent Convex Collider Creator asset featuring mesh deformation:
This is untested but gives a general idea of how to twist vertices with an arbitrary rotation. Assume the variables before the loop excluding verts are set based on the situation. |
Well at first I was thinking that deformations are handled using bone rigging for simplification and was suprised that it actually modifies the mesh. |
Do you have any reference for that kind of example? |
This is a really great project and i personally thank all who contributed.
What really improves this project is that having more metal like deformations. Like in Truss Physics:
https://www.youtube.com/watch?v=fNfChjsYLXc
I'm working on this project for my more damage based game. I'm planning to have not only crashes, also other flying objects' impacts.
Deformation takes a lot of CPU power (have 200ish mesh colliders & no collider deform) and deformation itself can be improved with more realistic way. Instead of checking all the vertices, can we handle vertices as groups with their neighbour vertices and bend object itself with predefined specific points. Displacement parts is just avoiding this realism so i put that off topic.
For example, instead of making deforming the hood with impact, we can bend the whole hood with predefined vertex points. Here is a basic bending code:
So maybe we can improve this and integrate with predefined point inputs per object for more pleasing damage physics with metal feel. What do you think?
The text was updated successfully, but these errors were encountered: