Skip to content

Commit fd7a9a6

Browse files
committed
Upgrade the 3D shake extension.
1 parent 6bbce4b commit fd7a9a6

File tree

1 file changed

+65
-3
lines changed

1 file changed

+65
-3
lines changed

examples/3d-bomberman/3d-bomberman.json

Lines changed: 65 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5691,11 +5691,14 @@
56915691
"name": "ShakeObject3D",
56925692
"previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/vector-difference-ab.svg",
56935693
"shortDescription": "Shake 3D objects.",
5694-
"version": "1.0.0",
5694+
"version": "2.0.0",
56955695
"description": [
56965696
"Shake 3D objects with translation and rotation.",
56975697
"",
5698-
"The 3D racing game example uses this extension ([open the project online](https://editor.gdevelop.io/?project=example://3d-racing-game))."
5698+
"The 3D racing game example uses this extension ([open the project online](https://editor.gdevelop.io/?project=example://3d-racing-game)).",
5699+
"",
5700+
"Breaking changes from 2.0.0",
5701+
"- The behavior for 3D box has been removed. The other behavior can be used for both models and boxes."
56995702
],
57005703
"origin": {
57015704
"identifier": "ShakeObject3D",
@@ -6974,11 +6977,60 @@
69746977
],
69756978
"eventsBasedBehaviors": [
69766979
{
6977-
"description": "Shake 3D models with translation and rotation.",
6980+
"description": "Shake 3D objects with translation and rotation.",
69786981
"fullName": "3D shake",
69796982
"name": "ShakeModel3D",
69806983
"objectType": "",
69816984
"eventsFunctions": [
6985+
{
6986+
"fullName": "",
6987+
"functionType": "Action",
6988+
"name": "onCreated",
6989+
"sentence": "",
6990+
"events": [
6991+
{
6992+
"type": "BuiltinCommonInstructions::Standard",
6993+
"conditions": [
6994+
{
6995+
"type": {
6996+
"value": "ShakeObject3D::ShakeModel3D::PropertyIsStartingAtCreation"
6997+
},
6998+
"parameters": [
6999+
"Object",
7000+
"Behavior"
7001+
]
7002+
}
7003+
],
7004+
"actions": [
7005+
{
7006+
"type": {
7007+
"value": "ShakeObject3D::ShakeModel3D::StartShaking"
7008+
},
7009+
"parameters": [
7010+
"Object",
7011+
"Behavior",
7012+
"0",
7013+
""
7014+
]
7015+
}
7016+
]
7017+
}
7018+
],
7019+
"parameters": [
7020+
{
7021+
"description": "Object",
7022+
"name": "Object",
7023+
"type": "object"
7024+
},
7025+
{
7026+
"description": "Behavior",
7027+
"name": "Behavior",
7028+
"supplementaryInformation": "ShakeObject3D::ShakeModel3D",
7029+
"type": "behavior"
7030+
}
7031+
],
7032+
"objectGroups": []
7033+
},
69827034
{
69837035
"fullName": "",
69847036
"functionType": "Action",
@@ -8253,6 +8305,16 @@
82538305
],
82548306
"hidden": false,
82558307
"name": "Object3D"
8308+
},
8309+
{
8310+
"value": "",
8311+
"type": "Boolean",
8312+
"label": "Start to shake at the object creation",
8313+
"description": "",
8314+
"group": "",
8315+
"extraInformation": [],
8316+
"hidden": false,
8317+
"name": "IsStartingAtCreation"
82568318
}
82578319
],
82588320
"sharedPropertyDescriptors": [

0 commit comments

Comments
 (0)