We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
btTransformUtil
Kinematic btRigidBody example by Erwin Coumans - creator of Bullet Physics
btRigidBody
btTransformUtil::integrateTransform(m_groundBody->getWorldTransform(), linearVelocity, angularVelocity, dt, predictedTrans); m_groundBody->getMotionState()->setWorldTransform(predictedTrans);
I'd like to use this useful btTransformUtil::integrateTransform() function in ammo.js. Can we expose this function in ammo.js?
btTransformUtil::integrateTransform()
ammo.js
btTransformUtil::integrateTransform() source in bulletphysics/bullet3
bulletphysics/bullet3
The text was updated successfully, but these errors were encountered:
Figured out how to do this. Added the following to ammo.idl:
ammo.idl
interface btTransformUtil { static void integrateTransform([Const, Ref] btTransform curTrans, [Const, Ref] btVector3 linvel, [Const, Ref] btVector3 angvel, float timeStep, [Ref] btTransform predictedTransform); };
After building ammo.js, this can then be called in JS by:
Ammo.btTransformUtil.prototype.integrateTransform(...)
Sorry, something went wrong.
No branches or pull requests
Kinematic
btRigidBody
example by Erwin Coumans - creator of Bullet PhysicsI'd like to use this useful
btTransformUtil::integrateTransform()
function inammo.js
. Can we expose this function inammo.js
?btTransformUtil::integrateTransform()
source inbulletphysics/bullet3
The text was updated successfully, but these errors were encountered: