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

Physical engine drive problem #5

Open
spencer17x opened this issue Jul 6, 2023 · 14 comments
Open

Physical engine drive problem #5

spencer17x opened this issue Jul 6, 2023 · 14 comments
Assignees
Labels
enhancement New feature or request

Comments

@spencer17x
Copy link

Playground:https://playground.babylonjs.com/#ZF86YL#6

Real effect:
https://github.com/noname0310/babylon-mmd/assets/32794413/8a78ed2e-935d-4ec4-9151-f2a8ef2e4bd3

The example in Playground looks like the clothes are flowing strangely

@noname0310
Copy link
Owner

Physics has not yet been implemented properly and is just operational.

@noname0310
Copy link
Owner

The solution currently available is physics bake and is available using NexGiMa.

https://sites.google.com/view/nexgima/Home

@noname0310 noname0310 added the enhancement New feature or request label Jul 6, 2023
@noname0310
Copy link
Owner

Related bug:
https://forum.babylonjs.com/t/havok-physics-rigidbody-dont-move-when-the-damping-values-of-several-bodies-are-different/43072/2

In the next release(0.23.0), the physics will probably work on most models

@spencer17x
Copy link
Author

image

@noname0310
Copy link
Owner

update @babylonjs/havok to 1.1.2 and @babylonjs/core to 6.15.0

@spencer17x
Copy link
Author

same problem.

2023-08-08.16.57.39.mov

@noname0310
Copy link
Owner

I'll let you know when there's another improvement.

noname0310 added a commit that referenced this issue Aug 12, 2023
@babylonjs/havok 1.1.3 required
@noname0310
Copy link
Owner

babylon-mmd 0.24.0 is released now. see CHANGELOG.md

@spencer17x
Copy link
Author

2023-08-17.11.37.24.mov

Perhaps the problem remains.

@noname0310
Copy link
Owner

There will be more improvements in the future.

@noname0310 noname0310 self-assigned this Aug 17, 2023
@noname0310
Copy link
Owner

There was an improvement in the 0.27.0 release. Give that a try.

@spencer17x
Copy link
Author

Or has it already been solved?

2023-09-19.10.44.56.mov

@noname0310
Copy link
Owner

If you think it produces usable results, use it.

I am not sure how to exactly reproduce the results of bullet physics(which used by mmd) with havok.

@noname0310
Copy link
Owner

The ammo.js physics backend will be available from babylon-mmd 0.42.0.
Although ammo.js is not very good performance, you will get very similar results to mmd.

The usage is the same as before, see this test code
https://github.com/noname0310/babylon-mmd/blob/main/src/Test/Scene/physicsTestScene.ts#L63
https://github.com/noname0310/babylon-mmd/blob/main/src/Test/Scene/physicsTestScene.ts#L111-L113

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants