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

I want to use your physics engine and embed it into our project #50

Closed
WREQI opened this issue Mar 27, 2025 · 2 comments
Closed

I want to use your physics engine and embed it into our project #50

WREQI opened this issue Mar 27, 2025 · 2 comments

Comments

@WREQI
Copy link

WREQI commented Mar 27, 2025

I want to use your physics engine and embed it into our project, but I see that you have done rendering internally. Since our project has done a lot of work, it is impossible to use your rendering again. Do you have a decoupled version of your physics engine that is not related to rendering and only has a physics engine interface?
Image

@WREQI
Copy link
Author

WREQI commented Mar 27, 2025

How to use the API of the physics engine? For example, havok HP_Body_ApplyImpulse???

@lo-th
Copy link
Owner

lo-th commented Mar 27, 2025

the goal of phy is unify and simplify use of physics
engine is embed in a worker for better perf
is compile with wasm compacted to avoid loading.

in /build you have one module by engins
three.js side is only in Phy.module.js

but to access all function you need both

so is for example, havok HP_Body_ApplyImpulse is for all engine
phy.change({ name:'yourObject', impulse:[0,2,0], impulseCenter:[0,0,0] })

look the code of each example with logo button on top left
doc is far from complete they are many function

you can still use root engine all link is on main page
but is a long work.

@lo-th lo-th closed this as completed Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants