babylon.solidParticle.js 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. var BABYLON;
  2. (function (BABYLON) {
  3. var SolidParticle = (function () {
  4. function SolidParticle(particleIndex, positionIndex, model, shapeId, idxInShape) {
  5. this.color = new BABYLON.Color4(1, 1, 1, 1); // color
  6. this.position = BABYLON.Vector3.Zero(); // position
  7. this.rotation = BABYLON.Vector3.Zero(); // rotation
  8. this.scale = new BABYLON.Vector3(1, 1, 1); // scale
  9. this.uvs = new BABYLON.Vector4(0, 0, 1, 1); // uvs
  10. this.velocity = BABYLON.Vector3.Zero(); // velocity
  11. this.alive = true; // alive
  12. this.idx = particleIndex;
  13. this._pos = positionIndex;
  14. this._model = model;
  15. this.shapeId = shapeId;
  16. this.idxInShape = idxInShape;
  17. }
  18. return SolidParticle;
  19. })();
  20. BABYLON.SolidParticle = SolidParticle;
  21. var ModelShape = (function () {
  22. function ModelShape(id, shape, shapeUV, posFunction, vtxFunction) {
  23. this.shapeID = id;
  24. this._shape = shape;
  25. this._shapeUV = shapeUV;
  26. this._positionFunction = posFunction;
  27. this._vertexFunction = vtxFunction;
  28. }
  29. return ModelShape;
  30. })();
  31. BABYLON.ModelShape = ModelShape;
  32. })(BABYLON || (BABYLON = {}));
  33. //# sourceMappingURL=babylon.solidParticle.js.map