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

Adjust mass in runtime #2

Open
schteppe opened this issue Mar 23, 2012 · 4 comments
Open

Adjust mass in runtime #2

schteppe opened this issue Mar 23, 2012 · 4 comments

Comments

@schteppe
Copy link

Hi,

I cannot seem to find some of the functions in box2d like SetMassData(), ResetMassData() etc for the body class that are explained in the box2d manual here: http://www.box2d.org/manual.html
I am pretty sure they exist in the original C++ version of Box2d. Were these functions removed when porting to Flash? Or to JavaScript?
Can they be included again somehow?

Thanks for the effort you've put into the code.

@hrj
Copy link
Owner

hrj commented Mar 23, 2012

Hi Stefan,

I had written / ported this code quite a while back and the project I was planning to use it for didn't leave the planning phase.

So, I won't be able to give a definite answer to this. I will keep this open, and if any of us finds an answer, let's update this issue.

Cheers,
Harshad

@schteppe
Copy link
Author

Okay, thanks. If I succeed to manually port these functions from the Box2D C++ code, I'll send you a pull request.
Another question: how do I compile the files in js/ to lib/box2d.js?

@hrj
Copy link
Owner

hrj commented Mar 23, 2012

On Fri, Mar 23, 2012 at 5:00 PM, Stefan Hedman <
[email protected]

wrote:

Another question: how do I compile the files in js/ to lib/box2d.js?

A simple concatenation would work IIRC. When publishing however, I use the
YUI Compressor.

Again, sorry for being hazy. It's been a long time.

@schteppe
Copy link
Author

OK, thanks :)

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