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:
parent
4042e43d17
commit
b976ca2e0b
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue