|
9 | 9 | "name": "ParticleEmitter3D", |
10 | 10 | "previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/f2e5a34bf465f781866677762d385d6c8e9e8d203383f2df9a3b7e0fad6a2cb5_fire.svg", |
11 | 11 | "shortDescription": "Display a large number of particles in 3D to create visual effects in a 3D game.", |
12 | | - "version": "2.2.0", |
| 12 | + "version": "3.0.0", |
13 | 13 | "description": [ |
14 | 14 | "3D particle emitters let you create and display many small particles to simulate visual effects in your game — like fire, explosions, smoke, or dust.", |
15 | 15 | "", |
|
34 | 34 | "IWykYNRvhCZBN3vEgKEbBPOR3Oc2" |
35 | 35 | ], |
36 | 36 | "changelog": [ |
| 37 | + { |
| 38 | + "version": "3.0.0", |
| 39 | + "breaking": "- the object rotates the other way around X axis." |
| 40 | + }, |
37 | 41 | { |
38 | 42 | "version": "2.0.0", |
39 | 43 | "breaking": "- Object properties for position and rotation have been removed. They must be set with the instance editor or the action." |
|
77 | 81 | " const threeObject3D = this.get3DRendererObject();", |
78 | 82 | "", |
79 | 83 | " threeObject3D.rotation.set(", |
80 | | - " // TODO The rotation on X goes the wrong way.", |
81 | | - " // Increment the major and remove this sign.", |
82 | | - " - gdjs.toRad(this._object.getRotationX()),", |
| 84 | + " gdjs.toRad(this._object.getRotationX()),", |
83 | 85 | " gdjs.toRad(this._object.getRotationY()),", |
84 | 86 | " gdjs.toRad(this._object.angle)", |
85 | 87 | " );", |
|
6993 | 6995 | "", |
6994 | 6996 | "/** @type {gdjs.CustomRuntimeObject} */", |
6995 | 6997 | "const object = objects[0];", |
| 6998 | + "// Force the size of the object because it doesn't contain any instance.", |
| 6999 | + "object._innerArea = {", |
| 7000 | + " min: [-16, -16, -16],", |
| 7001 | + " max: [16, 16, 16],", |
| 7002 | + " };", |
| 7003 | + "const hitbox = new gdjs.Polygon();", |
| 7004 | + "hitbox.vertices = [[-16, -16], [16, -16], [16, 16], [-16, 16]];", |
| 7005 | + "object._untransformedHitBoxes = [hitbox];", |
| 7006 | + "object._updateUntransformedHitBoxes = () => {};", |
6996 | 7007 | "", |
6997 | 7008 | "// Here runtimeScene is the gdjs.CustomRuntimeObjectInstanceContainer inside the custom object.", |
6998 | 7009 | "const gameScene = object.getRuntimeScene();", |
|
0 commit comments