-
Notifications
You must be signed in to change notification settings - Fork 71
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
Add support for Ammo.js physics. #208
base: master
Are you sure you want to change the base?
Conversation
Includes an updated version of the super-hands physics example
Took some digging, but I tracked this down to an issue with n5ro/aframe-physics-system#202. Got it running again by pointing to github instead of npm for it. Would you mind pulling the latest aframe-super-hands-component into you branch here? Some minor merge conflicts from an updated version of the linter. I'd also really like to add some unit tests around this so we can make ammo support a reliable ongoing feature. Let me know if you can add those tests or else I could probably fill in |
Thanks for looking at this - a little busy at the moment, but hope to look at this again within the next couple of weeks. |
Hi, sorry for the delay, I finally got a chance to look at the test side of things...
I can't get the machinima tests to run - I just get 100s of errors, starting like this...
I tried adding lines like this to karma.conf to avoid some of the bundling rrors, but still couldn't get it to run cleanly.
Not sure if I'm doing something wrong. Do the machinima tests work for you at the moment? In terms of physics tests in the existing tests, it looks like there is very little in the non-machinima tests that uses physics at all. Only one test (stretchable-physics) calls the entityFactory helper with usePhysics set to true.
In the machinima tests I see
I can see how I could add some tests here to cover Ammo.js, but I'm blocked on the issues above running machinima. Any pointers on the above would be much appreciated. |
Hey @diarmidmackenzie - sorry about machinima tests, those are dead until I (or someone) revives aframe-motion-capture-components. Only unit tests are relevant for now (I've since removed the PR template note about them) Re testing, I'd like to do another version of this suite for "grabbable with physics" that uses ammo instead
Also the same for stretchable.
I might pick up these testing tasks when I have a spare minute, so let me know if you start on them For examples, these have the now-broken mozillareality CDN link for ammo - do you have the new one? |
See c-frame/aframe-physics-system#30 for the new ammo url. |
…onent into ammo-pr
I have run
npm run test:machinima
, and this patch passes all machinima tests: no"npm install" fails with a bunch of errors, so I've not been able to build locally or run these tests.
npm ERR! Error while executing:
npm ERR! C:\Program Files\Git\cmd\git.EXE ls-remote -h -t ssh://[email protected]/donmccurdy/cannon.js.git
npm ERR!
npm ERR! Host key verification failed.
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128