Skip to content

Commit c106252

Browse files
committed
Add a property for the wobble orientation
1 parent 4ba5eaf commit c106252

File tree

1 file changed

+59
-3
lines changed

1 file changed

+59
-3
lines changed

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

Lines changed: 59 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1924,7 +1924,8 @@
19241924
"StretchMin": 1,
19251925
"StretchMax": 1.25,
19261926
"StretchPeriodDuration": 1,
1927-
"StretchPeriodOffset": -0.25
1927+
"StretchPeriodOffset": -0.25,
1928+
"Top": "Z+"
19281929
}
19291930
],
19301931
"content": {
@@ -10832,7 +10833,7 @@
1083210833
"name": "Tween3D",
1083310834
"previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/30bc03f9cf5f2f42960246a605352a6937ae6b603f0177396a83193849a4724a_tennis-ball.svg",
1083410835
"shortDescription": "Smoothly animate scale and rotation of 3d models.",
10835-
"version": "0.0.1",
10836+
"version": "0.0.2",
1083610837
"description": "Change models proportions and orientation over time to make smooth animations.",
1083710838
"tags": [
1083810839
"3d",
@@ -14356,7 +14357,19 @@
1435614357
"events": [
1435714358
{
1435814359
"type": "BuiltinCommonInstructions::Standard",
14359-
"conditions": [],
14360+
"conditions": [
14361+
{
14362+
"type": {
14363+
"value": "Tween3D::Wobble::PropertyTop"
14364+
},
14365+
"parameters": [
14366+
"Object",
14367+
"Behavior",
14368+
"=",
14369+
"\"Z+\""
14370+
]
14371+
}
14372+
],
1436014373
"actions": [
1436114374
{
1436214375
"type": {
@@ -14371,6 +14384,36 @@
1437114384
]
1437214385
}
1437314386
]
14387+
},
14388+
{
14389+
"type": "BuiltinCommonInstructions::Standard",
14390+
"conditions": [
14391+
{
14392+
"type": {
14393+
"value": "Tween3D::Wobble::PropertyTop"
14394+
},
14395+
"parameters": [
14396+
"Object",
14397+
"Behavior",
14398+
"=",
14399+
"\"Y-\""
14400+
]
14401+
}
14402+
],
14403+
"actions": [
14404+
{
14405+
"type": {
14406+
"value": "Tween3D::SetStretchY"
14407+
},
14408+
"parameters": [
14409+
"",
14410+
"=",
14411+
"exp(log(Object.Behavior::PropertyStretchMin()) + (log(Object.Behavior::PropertyStretchMax()) - log(Object.Behavior::PropertyStretchMin())) * sin(Object.Behavior:: PropertyAngle() + Object.Behavior::PropertyStretchPeriodOffset() / Object.Behavior::PropertyPeriodDuration() * 2 * Pi()))",
14412+
"Object",
14413+
""
14414+
]
14415+
}
14416+
]
1437414417
}
1437514418
],
1437614419
"parameters": [
@@ -14999,6 +15042,19 @@
1499915042
"extraInformation": [],
1500015043
"hidden": true,
1500115044
"name": "ScaleMaxTweenInitialValue"
15045+
},
15046+
{
15047+
"value": "Z+",
15048+
"type": "Choice",
15049+
"label": "Top orientation",
15050+
"description": "",
15051+
"group": "",
15052+
"extraInformation": [
15053+
"Z+",
15054+
"Y-"
15055+
],
15056+
"hidden": false,
15057+
"name": "Top"
1500215058
}
1500315059
],
1500415060
"sharedPropertyDescriptors": []

0 commit comments

Comments
 (0)