/** End applying multiple animations to the instance and update it to reflect the changes. */ protected void end() { if (!applying) throw new GdxRuntimeException("You must call begin() first"); for (Entry<Node, Transform> entry : transforms.entries()) { entry.value.toMatrix4(entry.key.localTransform); transformPool.free(entry.value); } transforms.clear(); target.calculateTransforms(); applying = false; }
@Override public void dispose() { for (int i = 0; i < entities.size; i++) { final Entity entity = entities.get(i); dynamicsWorld.removeRigidBody(entity.body); entity.dispose(); } entities.clear(); for (Entity.ConstructInfo constructor : constructors.values()) { constructor.dispose(); } constructors.clear(); dynamicsWorld.delete(); solver.delete(); broadphase.delete(); dispatcher.delete(); collisionConfiguration.delete(); }
public void clear() { attachments.clear(); }