Closed kalegd closed 2 years ago
Interesting. I get the same error with npm
but it works fine with yarn
.
In package.json
it adds the physx source github repo as a dependency (as opposed to an actual npm package) so it might be that yarn understands this format but npm does not.
I assume you are trying to add/edit some of the PhysX bindings? If so you can alternatively just clone the physx repo this repo tracks (prestomation/PhysX#emscripten_wip) and manually follow the scripts used in this repo to generate/make builds.
The current problem with this repo is that it can't receive PR's for new bindings etc because they need to happen in @prestomation's branch, and then this repo would be updated to pull from the latest and publish to npm. We also can't bundle all of these examples/scripts in that repo because it's not likely nvidia will want it there when it gets merged back in.
Any suggestions on how to better handle this would be great. Would love to see what you're working on!
Ah I completely get the whole keeping that other repo clean for the sake of getting it merged with nvidia, so having everything setup the way it is works fine. And I'll try out yarn, and if I have no luck with that I'll go with prestomation's branch
I'm currently working on a Chess game with physics so people using VR headsets can play normally or scale themselves down to push pieces around in a life size game (and a non physics option so mobile and desktop users can play with VR users). The binding I'm considering adding is for setting maximum depenetration velocity for PxRigidBodys. Having a chess piece going from kinematic actor to not partially inside of the floor causes all sorts of problems/flying haha
That sounds amazing! It will be awesome to experience the scaling feature.
I actually have depenetration bindings on my TODO list so if you want to share an updated bindings file i can make a build, update my PR on preston's branch and make a release to npm for you :D
No worries if you can't, i'll get to it at some point in the future
I'm not terribly familiar with npm so I'm not entirely sure if this is an issue on my end or not(sorry if it is), but I'm unable to run npm install after cloning the repo. This is the log that I get
It looks like the error is in this line
17 silly fetchPackageMetaData error for physx@github:prestomation/PhysX#emscripten_wip premature close
But I have no idea why as that's a valid branch
(side note, thank you for putting up this up! I've really enjoyed integrating PhysX with three.js over the past month!)