Enable Bullet.updateSingleAabb (needs updated ammo.js)

Only merge once https://github.com/kripken/ammo.js/pull/180 has been merged, and ammo.js has been rebuilt.
This commit is contained in:
Martin Wallin 2017-12-12 23:20:32 +01:00
parent 4042e43d17
commit b976ca2e0b

View file

@ -306,7 +306,7 @@ class RigidBody extends Trait {
currentScaleY = v.y;
currentScaleZ = v.z;
if (!isConvex) _shape.setLocalScaling(BtVector3.create(bodyScaleX * v.x, bodyScaleY * v.y, bodyScaleZ * v.z));
// physics.activate.world.updateSingleAabb(body);
physics.world.updateSingleAabb(body);
}
function addPointsToConvexHull(shape:BtConvexHullShapePointer, scale:Vec4, margin:Float) {