Transaction 9e98f0c366464e6dec8c5069d8de83c938db9bc7c8e963b9e52189778da7f2c7

1 Input
  • 3d7ebd697865ec118600e8a6d3ce056c40ed38d11bdb4340ca117c87f7fdcc1f:0
    OP_DATA_32(32) 117f692257b2331233b5705ce9c682be8719ff1b2b64cbca290bd6faeb54423e
    OP_CHECKSIG(172)
    OP_DATA_6(6) ä¾v,Š
    OP_DROP(117)
    OP_0(0)
    OP_IF(99)
    OP_DATA_3(3) ord
    OP_DATA_1(1) 
    OP_DATA_15(15) text/javascript
    OP_0(0)
    OP_PUSHDATA2(77) var AutoColliders = pc.createScript('autoColliders'); AutoColliders.prototype.initialize = function() { var entities = this.app.root.children; for (var i = 0; i < entities.length; i++) { var entity = entities[i]; var scale = entity.getLocalScale(); if (entity.render && (entity.cType === "s" || entity.cType === "d")) { if (entity.render._type == "plane") { entity.addComponent('collision', { type: 'box', halfExtents:
    OP_PUSHDATA2(77) new pc.Vec3(scale.x / 2, 0.01, scale.z / 2) }); } else if (entity.render._type == "box") { entity.addComponent('collision', { type: 'box', halfExtents: new pc.Vec3(scale.x / 2, scale.y / 2, scale.z / 2) }); } else if (entity.render._type == "capsule") { entity.addComponent('collision', { type: 'capsule', radius: scale.x / 2, heig
    OP_PUSHDATA2(77) ht: scale.y * 2 }); } else if (entity.render._type == "sphere") { entity.addComponent('collision', { type: 'sphere', radius: scale.y / 2 }); } else if (entity.render._type == "cylinder") { entity.addComponent('collision', { type: 'cylinder', radius: scale.x / 2, height: scale.y }); } else if (entity.ren
    OP_PUSHDATA2(77) der._type == "cone") { entity.addComponent('collision', { type: 'cone', radius: scale.x / 2, height: scale.y }); } if (entity.cType == "s") { entity.addComponent('rigidbody', { type: 'static', friction: 1, restitution: 0 }); } else if (entity.cType == "d") { entity.addComponent('rigidbody', {
    OP_PUSHDATA2(77) type: 'dynamic', mass: entity.cMass, linearDamping: entity.cLinear, angularDamping: entity.cAngular, friction: entity.cFriction, restitution: entity.cRestitution }); } } if (entity.model && entity.cType === "s") { entity.addComponent('collision', { type: 'mesh', asset: this.app.assets.find(entity.cAsset).resource.model
    OP_PUSHDATA1(76) }); entity.addComponent('rigidbody', { type: 'static', friction: 1, restitution: 0 }); } } };
    OP_ENDIF(104)
2 Outputs
  • 9e98f0c366464e6dec8c5069d8de83c938db9bc7c8e963b9e52189778da7f2c7:0
  • value  546
    address  bc1pvlhrdze7vltj7q04ml2crnx7l3lh2w7gldxnch09vptten36mupswcsmm4
  • 9e98f0c366464e6dec8c5069d8de83c938db9bc7c8e963b9e52189778da7f2c7:1
  • value  1494
    address  bc1qtw9y4lmj64fuh40huhg4wz3yvq6m9qwdfxxk6m