Skip to content

Commit a873a25

Browse files
authored
[Community] [3D Tween] Add a property for the wobble orientation (#989)
* Don't show in changelog
1 parent 7ab817d commit a873a25

File tree

1 file changed

+57
-2
lines changed

1 file changed

+57
-2
lines changed

extensions/community/Tween3D.json

Lines changed: 57 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"name": "Tween3D",
99
"previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/30bc03f9cf5f2f42960246a605352a6937ae6b603f0177396a83193849a4724a_tennis-ball.svg",
1010
"shortDescription": "Smoothly animate scale and rotation of 3d models.",
11-
"version": "0.0.1",
11+
"version": "0.0.2",
1212
"description": "Change models proportions and orientation over time to make smooth animations.",
1313
"tags": [
1414
"3d",
@@ -3532,7 +3532,19 @@
35323532
"events": [
35333533
{
35343534
"type": "BuiltinCommonInstructions::Standard",
3535-
"conditions": [],
3535+
"conditions": [
3536+
{
3537+
"type": {
3538+
"value": "Tween3D::Wobble::PropertyTop"
3539+
},
3540+
"parameters": [
3541+
"Object",
3542+
"Behavior",
3543+
"=",
3544+
"\"Z+\""
3545+
]
3546+
}
3547+
],
35363548
"actions": [
35373549
{
35383550
"type": {
@@ -3547,6 +3559,36 @@
35473559
]
35483560
}
35493561
]
3562+
},
3563+
{
3564+
"type": "BuiltinCommonInstructions::Standard",
3565+
"conditions": [
3566+
{
3567+
"type": {
3568+
"value": "Tween3D::Wobble::PropertyTop"
3569+
},
3570+
"parameters": [
3571+
"Object",
3572+
"Behavior",
3573+
"=",
3574+
"\"Y-\""
3575+
]
3576+
}
3577+
],
3578+
"actions": [
3579+
{
3580+
"type": {
3581+
"value": "Tween3D::SetStretchY"
3582+
},
3583+
"parameters": [
3584+
"",
3585+
"=",
3586+
"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()))",
3587+
"Object",
3588+
""
3589+
]
3590+
}
3591+
]
35503592
}
35513593
],
35523594
"parameters": [
@@ -4175,6 +4217,19 @@
41754217
"extraInformation": [],
41764218
"hidden": true,
41774219
"name": "ScaleMaxTweenInitialValue"
4220+
},
4221+
{
4222+
"value": "Z+",
4223+
"type": "Choice",
4224+
"label": "Top orientation",
4225+
"description": "",
4226+
"group": "",
4227+
"extraInformation": [
4228+
"Z+",
4229+
"Y-"
4230+
],
4231+
"hidden": false,
4232+
"name": "Top"
41784233
}
41794234
],
41804235
"sharedPropertyDescriptors": []

0 commit comments

Comments
 (0)