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

Added couple of functions to ammo.idl #180

Merged
merged 1 commit into from
Dec 13, 2017

Conversation

guzzard
Copy link
Contributor

@guzzard guzzard commented Dec 12, 2017

In btCollisionShape:
[Const, Ref] btVector3 getLocalScaling();

In btRigidBody:
void applyGravity();
[Const, Ref] btVector3 getGravity();
void setGravity([Const, Ref] btVector3 acceleration);

In btCollisionWorld:
void updateSingleAabb([Const] btCollisionObject colObj);

Added functions tested in an Armory HTML5/JS build, and working fine!

All ammo.js test cases passed, no issues (ran them manually using node ../builds/ammo.js ./basics.js etc).

In btCollisionShape:
[Const, Ref] btVector3 getLocalScaling(); 

In btRigidBody:
void applyGravity(); 
[Const, Ref] btVector3 getGravity(); 
void setGravity([Const, Ref] btVector3 acceleration); 

In btCollisionWorld:
void updateSingleAabb([Const] btCollisionObject colObj);
guzzard added a commit to guzzard/armory that referenced this pull request Dec 12, 2017
Only merge once kripken/ammo.js#180 has been merged, and ammo.js has been rebuilt.
@kripken kripken merged commit 1296d37 into kripken:master Dec 13, 2017
@kripken
Copy link
Owner

kripken commented Dec 13, 2017

Thanks!

@guzzard guzzard deleted the ammojs-more-funcs branch December 13, 2017 12:13
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

Successfully merging this pull request may close these issues.

None yet

2 participants