diff --git a/extensions/reviewed/ShakeObject3D.json b/extensions/reviewed/ShakeObject3D.json index 13d8a72e8..7144788be 100644 --- a/extensions/reviewed/ShakeObject3D.json +++ b/extensions/reviewed/ShakeObject3D.json @@ -8,12 +8,19 @@ "name": "ShakeObject3D", "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/vector-difference-ab.svg", "shortDescription": "Shake 3D objects.", - "version": "1.0.0", + "version": "2.0.0", "description": [ "Shake 3D objects with translation and rotation.", "", - "The 3D racing game example uses this extension ([open the project online](https://editor.gdevelop.io/?project=example://3d-racing-game))." + "The 3D racing game example uses this extension ([open the project online](https://editor.gdevelop.io/?project=example://3d-racing-game)).", + "", + "Breaking changes from 2.0.0", + "- The behavior for 3D box has been removed. The other behavior can be used for both models and boxes." ], + "origin": { + "identifier": "ShakeObject3D", + "name": "gdevelop-extension-store" + }, "tags": [ "3d", "shaking", @@ -1287,11 +1294,60 @@ ], "eventsBasedBehaviors": [ { - "description": "Shake 3D cubes with translation and rotation.", - "fullName": "Shake 3D cube", - "name": "ShakeCube3D", - "objectType": "Scene3D::Cube3DObject", + "description": "Shake 3D objects with translation and rotation.", + "fullName": "3D shake", + "name": "ShakeModel3D", + "objectType": "", "eventsFunctions": [ + { + "fullName": "", + "functionType": "Action", + "name": "onCreated", + "sentence": "", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "ShakeObject3D::ShakeModel3D::PropertyIsStartingAtCreation" + }, + "parameters": [ + "Object", + "Behavior" + ] + } + ], + "actions": [ + { + "type": { + "value": "ShakeObject3D::ShakeModel3D::StartShaking" + }, + "parameters": [ + "Object", + "Behavior", + "0", + "" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "type": "object" + }, + { + "description": "Behavior", + "name": "Behavior", + "supplementaryInformation": "ShakeObject3D::ShakeModel3D", + "type": "behavior" + } + ], + "objectGroups": [] + }, { "fullName": "", "functionType": "Action", @@ -1308,8 +1364,7 @@ "textG": 0, "textR": 0 }, - "comment": "Step time counters.", - "comment2": "" + "comment": "Step time counters." }, { "type": "BuiltinCommonInstructions::Standard", @@ -1317,7 +1372,7 @@ "actions": [ { "type": { - "value": "ShakeObject3D::ShakeCube3D::SetPropertyTime" + "value": "ShakeObject3D::ShakeModel3D::SetPropertyTime" }, "parameters": [ "Object", @@ -1328,7 +1383,7 @@ }, { "type": { - "value": "ShakeObject3D::ShakeCube3D::SetPropertyNoiseTime" + "value": "ShakeObject3D::ShakeModel3D::SetPropertyNoiseTime" }, "parameters": [ "Object", @@ -1344,7 +1399,7 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeCube3D::IsShaking" + "value": "ShakeObject3D::ShakeModel3D::IsShaking" }, "parameters": [ "Object", @@ -1356,7 +1411,7 @@ "actions": [ { "type": { - "value": "ShakeObject3D::ShakeCube3D::SetSharedPropertyEasingFactor" + "value": "ShakeObject3D::ShakeModel3D::SetSharedPropertyEasingFactor" }, "parameters": [ "Object", @@ -1372,7 +1427,7 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeCube3D::PropertyTime" + "value": "ShakeObject3D::ShakeModel3D::PropertyTime" }, "parameters": [ "Object", @@ -1383,7 +1438,7 @@ }, { "type": { - "value": "ShakeObject3D::ShakeCube3D::PropertyTime" + "value": "ShakeObject3D::ShakeModel3D::PropertyTime" }, "parameters": [ "Object", @@ -1396,7 +1451,7 @@ "actions": [ { "type": { - "value": "ShakeObject3D::ShakeCube3D::SetSharedPropertyEasingFactor" + "value": "ShakeObject3D::ShakeModel3D::SetSharedPropertyEasingFactor" }, "parameters": [ "Object", @@ -1412,7 +1467,7 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeCube3D::PropertyTime" + "value": "ShakeObject3D::ShakeModel3D::PropertyTime" }, "parameters": [ "Object", @@ -1425,7 +1480,7 @@ "actions": [ { "type": { - "value": "ShakeObject3D::ShakeCube3D::SetSharedPropertyEasingFactor" + "value": "ShakeObject3D::ShakeModel3D::SetSharedPropertyEasingFactor" }, "parameters": [ "Object", @@ -1464,15 +1519,14 @@ "textG": 0, "textR": 0 }, - "comment": "Shake the layer camera.\nSave the camera displacement to revert it in onScenePostEvents.", - "comment2": "" + "comment": "Shake the layer camera.\nSave the camera displacement to revert it in onScenePostEvents." }, { "type": "BuiltinCommonInstructions::Standard", "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeCube3D::PropertyTranslationAmplitudeX" + "value": "ShakeObject3D::ShakeModel3D::PropertyTranslationAmplitudeX" }, "parameters": [ "Object", @@ -1485,7 +1539,7 @@ "actions": [ { "type": { - "value": "ShakeObject3D::ShakeCube3D::SetPropertyDeltaX" + "value": "ShakeObject3D::ShakeModel3D::SetPropertyDeltaX" }, "parameters": [ "Object", @@ -1511,7 +1565,7 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeCube3D::PropertyTranslationAmplitudeY" + "value": "ShakeObject3D::ShakeModel3D::PropertyTranslationAmplitudeY" }, "parameters": [ "Object", @@ -1524,7 +1578,7 @@ "actions": [ { "type": { - "value": "ShakeObject3D::ShakeCube3D::SetPropertyDeltaY" + "value": "ShakeObject3D::ShakeModel3D::SetPropertyDeltaY" }, "parameters": [ "Object", @@ -1550,7 +1604,7 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeCube3D::PropertyTranslationAmplitudeZ" + "value": "ShakeObject3D::ShakeModel3D::PropertyTranslationAmplitudeZ" }, "parameters": [ "Object", @@ -1563,7 +1617,7 @@ "actions": [ { "type": { - "value": "ShakeObject3D::ShakeCube3D::SetPropertyDeltaZ" + "value": "ShakeObject3D::ShakeModel3D::SetPropertyDeltaZ" }, "parameters": [ "Object", @@ -1574,10 +1628,11 @@ }, { "type": { - "value": "Scene3D::Cube3DObject::SetZ" + "value": "Scene3D::Base3DBehavior::SetZ" }, "parameters": [ "Object", + "Object3D", "+", "Object.Behavior::PropertyDeltaY()" ] @@ -1589,7 +1644,7 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeCube3D::PropertyRotationAmplitudeX" + "value": "ShakeObject3D::ShakeModel3D::PropertyRotationAmplitudeX" }, "parameters": [ "Object", @@ -1602,7 +1657,7 @@ "actions": [ { "type": { - "value": "ShakeObject3D::ShakeCube3D::SetPropertyDeltaAngleX" + "value": "ShakeObject3D::ShakeModel3D::SetPropertyDeltaAngleX" }, "parameters": [ "Object", @@ -1613,10 +1668,11 @@ }, { "type": { - "value": "Scene3D::Cube3DObject::SetRotationX" + "value": "Scene3D::Base3DBehavior::SetRotationX" }, "parameters": [ "Object", + "Object3D", "+", "Object.Behavior::PropertyDeltaAngleX()" ] @@ -1628,7 +1684,7 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeCube3D::PropertyRotationAmplitudeY" + "value": "ShakeObject3D::ShakeModel3D::PropertyRotationAmplitudeY" }, "parameters": [ "Object", @@ -1641,7 +1697,7 @@ "actions": [ { "type": { - "value": "ShakeObject3D::ShakeCube3D::SetPropertyDeltaAngleY" + "value": "ShakeObject3D::ShakeModel3D::SetPropertyDeltaAngleY" }, "parameters": [ "Object", @@ -1652,10 +1708,11 @@ }, { "type": { - "value": "Scene3D::Cube3DObject::SetRotationY" + "value": "Scene3D::Base3DBehavior::SetRotationY" }, "parameters": [ "Object", + "Object3D", "+", "Object.Behavior::PropertyDeltaAngleY()" ] @@ -1667,7 +1724,7 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeCube3D::PropertyRotationAmplitudeZ" + "value": "ShakeObject3D::ShakeModel3D::PropertyRotationAmplitudeZ" }, "parameters": [ "Object", @@ -1680,7 +1737,7 @@ "actions": [ { "type": { - "value": "ShakeObject3D::ShakeCube3D::SetPropertyDeltaAngleZ" + "value": "ShakeObject3D::ShakeModel3D::SetPropertyDeltaAngleZ" }, "parameters": [ "Object", @@ -1708,13 +1765,12 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Scene3D::Cube3DObject", "type": "object" }, { "description": "Behavior", "name": "Behavior", - "supplementaryInformation": "ShakeObject3D::ShakeCube3D", + "supplementaryInformation": "ShakeObject3D::ShakeModel3D", "type": "behavior" } ], @@ -1736,15 +1792,14 @@ "textG": 0, "textR": 0 }, - "comment": "Revert the shaking.", - "comment2": "" + "comment": "Revert the shaking." }, { "type": "BuiltinCommonInstructions::Standard", "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeCube3D::IsShaking" + "value": "ShakeObject3D::ShakeModel3D::IsShaking" }, "parameters": [ "Object", @@ -1760,7 +1815,7 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeCube3D::PropertyTranslationAmplitudeX" + "value": "ShakeObject3D::ShakeModel3D::PropertyTranslationAmplitudeX" }, "parameters": [ "Object", @@ -1788,7 +1843,7 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeCube3D::PropertyTranslationAmplitudeY" + "value": "ShakeObject3D::ShakeModel3D::PropertyTranslationAmplitudeY" }, "parameters": [ "Object", @@ -1816,7 +1871,7 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeCube3D::PropertyTranslationAmplitudeZ" + "value": "ShakeObject3D::ShakeModel3D::PropertyTranslationAmplitudeZ" }, "parameters": [ "Object", @@ -1829,10 +1884,11 @@ "actions": [ { "type": { - "value": "Scene3D::Cube3DObject::SetZ" + "value": "Scene3D::Base3DBehavior::SetZ" }, "parameters": [ "Object", + "Object3D", "-", "Object.Behavior::PropertyDeltaZ()" ] @@ -1844,7 +1900,7 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeCube3D::PropertyRotationAmplitudeX" + "value": "ShakeObject3D::ShakeModel3D::PropertyRotationAmplitudeX" }, "parameters": [ "Object", @@ -1857,10 +1913,11 @@ "actions": [ { "type": { - "value": "Scene3D::Cube3DObject::SetRotationX" + "value": "Scene3D::Base3DBehavior::SetRotationX" }, "parameters": [ "Object", + "Object3D", "-", "Object.Behavior::PropertyDeltaAngleX()" ] @@ -1872,7 +1929,7 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeCube3D::PropertyRotationAmplitudeY" + "value": "ShakeObject3D::ShakeModel3D::PropertyRotationAmplitudeY" }, "parameters": [ "Object", @@ -1885,10 +1942,11 @@ "actions": [ { "type": { - "value": "Scene3D::Cube3DObject::SetRotationY" + "value": "Scene3D::Base3DBehavior::SetRotationY" }, "parameters": [ "Object", + "Object3D", "-", "Object.Behavior::PropertyDeltaAngleY()" ] @@ -1900,7 +1958,7 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeCube3D::PropertyRotationAmplitudeZ" + "value": "ShakeObject3D::ShakeModel3D::PropertyRotationAmplitudeZ" }, "parameters": [ "Object", @@ -1930,13 +1988,12 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Scene3D::Cube3DObject", "type": "object" }, { "description": "Behavior", "name": "Behavior", - "supplementaryInformation": "ShakeObject3D::ShakeCube3D", + "supplementaryInformation": "ShakeObject3D::ShakeModel3D", "type": "behavior" } ], @@ -1955,7 +2012,7 @@ "actions": [ { "type": { - "value": "ShakeObject3D::ShakeCube3D::SetPropertyTime" + "value": "ShakeObject3D::ShakeModel3D::SetPropertyTime" }, "parameters": [ "Object", @@ -1966,7 +2023,7 @@ }, { "type": { - "value": "ShakeObject3D::ShakeCube3D::SetPropertyNoiseTime" + "value": "ShakeObject3D::ShakeModel3D::SetPropertyNoiseTime" }, "parameters": [ "Object", @@ -1977,7 +2034,7 @@ }, { "type": { - "value": "ShakeObject3D::ShakeCube3D::SetPropertyDuration" + "value": "ShakeObject3D::ShakeModel3D::SetPropertyDuration" }, "parameters": [ "Object", @@ -1988,7 +2045,7 @@ }, { "type": { - "value": "ShakeObject3D::ShakeCube3D::SetPropertyStartEasingDuration" + "value": "ShakeObject3D::ShakeModel3D::SetPropertyStartEasingDuration" }, "parameters": [ "Object", @@ -1999,7 +2056,7 @@ }, { "type": { - "value": "ShakeObject3D::ShakeCube3D::SetPropertyStopEasingDuration" + "value": "ShakeObject3D::ShakeModel3D::SetPropertyStopEasingDuration" }, "parameters": [ "Object", @@ -2027,7 +2084,7 @@ "actions": [ { "type": { - "value": "ShakeObject3D::ShakeCube3D::SetPropertyStartEasingDuration" + "value": "ShakeObject3D::ShakeModel3D::SetPropertyStartEasingDuration" }, "parameters": [ "Object", @@ -2038,7 +2095,7 @@ }, { "type": { - "value": "ShakeObject3D::ShakeCube3D::SetPropertyStopEasingDuration" + "value": "ShakeObject3D::ShakeModel3D::SetPropertyStopEasingDuration" }, "parameters": [ "Object", @@ -2054,13 +2111,12 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Scene3D::Cube3DObject", "type": "object" }, { "description": "Behavior", "name": "Behavior", - "supplementaryInformation": "ShakeObject3D::ShakeCube3D", + "supplementaryInformation": "ShakeObject3D::ShakeModel3D", "type": "behavior" }, { @@ -2094,7 +2150,7 @@ "actions": [ { "type": { - "value": "ShakeObject3D::ShakeCube3D::SetPropertyTime" + "value": "ShakeObject3D::ShakeModel3D::SetPropertyTime" }, "parameters": [ "Object", @@ -2105,7 +2161,7 @@ }, { "type": { - "value": "ShakeObject3D::ShakeCube3D::SetPropertyNoiseTime" + "value": "ShakeObject3D::ShakeModel3D::SetPropertyNoiseTime" }, "parameters": [ "Object", @@ -2116,7 +2172,7 @@ }, { "type": { - "value": "ShakeObject3D::ShakeCube3D::SetPropertyDuration" + "value": "ShakeObject3D::ShakeModel3D::SetPropertyDuration" }, "parameters": [ "Object", @@ -2127,7 +2183,7 @@ }, { "type": { - "value": "ShakeObject3D::ShakeCube3D::SetPropertyStartEasingDuration" + "value": "ShakeObject3D::ShakeModel3D::SetPropertyStartEasingDuration" }, "parameters": [ "Object", @@ -2143,13 +2199,12 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Scene3D::Cube3DObject", "type": "object" }, { "description": "Behavior", "name": "Behavior", - "supplementaryInformation": "ShakeObject3D::ShakeCube3D", + "supplementaryInformation": "ShakeObject3D::ShakeModel3D", "type": "behavior" }, { @@ -2172,7 +2227,7 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeCube3D::IsShaking" + "value": "ShakeObject3D::ShakeModel3D::IsShaking" }, "parameters": [ "Object", @@ -2184,7 +2239,7 @@ "actions": [ { "type": { - "value": "ShakeObject3D::ShakeCube3D::SetPropertyTime" + "value": "ShakeObject3D::ShakeModel3D::SetPropertyTime" }, "parameters": [ "Object", @@ -2195,7 +2250,7 @@ }, { "type": { - "value": "ShakeObject3D::ShakeCube3D::SetPropertyDuration" + "value": "ShakeObject3D::ShakeModel3D::SetPropertyDuration" }, "parameters": [ "Object", @@ -2206,7 +2261,7 @@ }, { "type": { - "value": "ShakeObject3D::ShakeCube3D::SetPropertyStopEasingDuration" + "value": "ShakeObject3D::ShakeModel3D::SetPropertyStopEasingDuration" }, "parameters": [ "Object", @@ -2222,13 +2277,12 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Scene3D::Cube3DObject", "type": "object" }, { "description": "Behavior", "name": "Behavior", - "supplementaryInformation": "ShakeObject3D::ShakeCube3D", + "supplementaryInformation": "ShakeObject3D::ShakeModel3D", "type": "behavior" }, { @@ -2251,7 +2305,7 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeCube3D::PropertyTime" + "value": "ShakeObject3D::ShakeModel3D::PropertyTime" }, "parameters": [ "Object", @@ -2277,13 +2331,12 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Scene3D::Cube3DObject", "type": "object" }, { "description": "Behavior", "name": "Behavior", - "supplementaryInformation": "ShakeObject3D::ShakeCube3D", + "supplementaryInformation": "ShakeObject3D::ShakeModel3D", "type": "behavior" } ], @@ -2319,13 +2372,12 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Scene3D::Cube3DObject", "type": "object" }, { "description": "Behavior", "name": "Behavior", - "supplementaryInformation": "ShakeObject3D::ShakeCube3D", + "supplementaryInformation": "ShakeObject3D::ShakeModel3D", "type": "behavior" } ], @@ -2344,7 +2396,7 @@ "actions": [ { "type": { - "value": "ShakeObject3D::ShakeCube3D::SetPropertyFrequency" + "value": "ShakeObject3D::ShakeModel3D::SetPropertyFrequency" }, "parameters": [ "Object", @@ -2360,13 +2412,12 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Scene3D::Cube3DObject", "type": "object" }, { "description": "Behavior", "name": "Behavior", - "supplementaryInformation": "ShakeObject3D::ShakeCube3D", + "supplementaryInformation": "ShakeObject3D::ShakeModel3D", "type": "behavior" } ], @@ -2375,7 +2426,7 @@ ], "propertyDescriptors": [ { - "value": "4", + "value": "0", "type": "Number", "unit": "Pixel", "label": "Translation amplitude on X axis", @@ -2559,1294 +2610,28 @@ "extraInformation": [], "hidden": true, "name": "NoiseTime" - } - ], - "sharedPropertyDescriptors": [ + }, { "value": "", - "type": "Number", - "label": "", + "type": "Behavior", + "label": "3D capability", "description": "", "group": "", - "extraInformation": [], - "hidden": true, - "name": "EasingFactor" - } - ] - }, - { - "description": "Shake 3D models with translation and rotation.", - "fullName": "Shake 3D model", - "name": "ShakeModel3D", - "objectType": "Scene3D::Model3DObject", - "eventsFunctions": [ - { - "fullName": "", - "functionType": "Action", - "name": "doStepPostEvents", - "sentence": "", - "events": [ - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Step time counters.", - "comment2": "" - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [], - "actions": [ - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyTime" - }, - "parameters": [ - "Object", - "Behavior", - "+", - "TimeDelta()" - ] - }, - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyNoiseTime" - }, - "parameters": [ - "Object", - "Behavior", - "+", - "TimeDelta() * Object.Behavior::Frequency()" - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::IsShaking" - }, - "parameters": [ - "Object", - "Behavior", - "" - ] - } - ], - "actions": [ - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::SetSharedPropertyEasingFactor" - }, - "parameters": [ - "Object", - "Behavior", - "=", - "1" - ] - } - ], - "events": [ - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyTime" - }, - "parameters": [ - "Object", - "Behavior", - "<", - "Object.Behavior::PropertyStartEasingDuration()" - ] - }, - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyTime" - }, - "parameters": [ - "Object", - "Behavior", - "<", - "Object.Behavior::PropertyDuration() - Object.Behavior::PropertyStopEasingDuration()" - ] - } - ], - "actions": [ - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::SetSharedPropertyEasingFactor" - }, - "parameters": [ - "Object", - "Behavior", - "=", - "clamp(0, 1, Object.Behavior::PropertyTime() / Object.Behavior::PropertyStartEasingDuration())" - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyTime" - }, - "parameters": [ - "Object", - "Behavior", - ">", - "Object.Behavior::PropertyDuration() - Object.Behavior::PropertyStopEasingDuration()" - ] - } - ], - "actions": [ - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::SetSharedPropertyEasingFactor" - }, - "parameters": [ - "Object", - "Behavior", - "=", - "clamp(0, 1, (Object.Behavior::PropertyDuration() - Object.Behavior::PropertyTime()) / Object.Behavior::PropertyStopEasingDuration())" - ] - } - ] - }, - { - "disabled": true, - "type": "BuiltinCommonInstructions::Standard", - "conditions": [], - "actions": [ - { - "type": { - "value": "ShakeObject3D::SetFrequency" - }, - "parameters": [ - "", - "Object.Behavior::PropertyFrequency()", - "\"\"", - "" - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Shake the layer camera.\nSave the camera displacement to revert it in onScenePostEvents.", - "comment2": "" - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyTranslationAmplitudeX" - }, - "parameters": [ - "Object", - "Behavior", - "!=", - "0" - ] - } - ], - "actions": [ - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyDeltaX" - }, - "parameters": [ - "Object", - "Behavior", - "=", - "ShakeObject3D::Noise2d(\"\", Object.Behavior::PropertyNoiseTime(), 1000) * Object.Behavior::PropertyTranslationAmplitudeX() * Object.Behavior::SharedPropertyEasingFactor()" - ] - }, - { - "type": { - "value": "MettreX" - }, - "parameters": [ - "Object", - "+", - "Object.Behavior::PropertyDeltaX()" - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyTranslationAmplitudeY" - }, - "parameters": [ - "Object", - "Behavior", - "!=", - "0" - ] - } - ], - "actions": [ - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyDeltaY" - }, - "parameters": [ - "Object", - "Behavior", - "=", - "ShakeObject3D::Noise2d(\"\", Object.Behavior::PropertyNoiseTime(), 2000) * Object.Behavior::PropertyTranslationAmplitudeY() * Object.Behavior::SharedPropertyEasingFactor()" - ] - }, - { - "type": { - "value": "MettreY" - }, - "parameters": [ - "Object", - "+", - "Object.Behavior::PropertyDeltaY()" - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyTranslationAmplitudeZ" - }, - "parameters": [ - "Object", - "Behavior", - "!=", - "0" - ] - } - ], - "actions": [ - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyDeltaZ" - }, - "parameters": [ - "Object", - "Behavior", - "=", - "ShakeObject3D::Noise2d(\"\", Object.Behavior::PropertyNoiseTime(), 3000) * Object.Behavior::PropertyTranslationAmplitudeZ() * Object.Behavior::SharedPropertyEasingFactor()" - ] - }, - { - "type": { - "value": "Scene3D::Model3DObject::SetZ" - }, - "parameters": [ - "Object", - "+", - "Object.Behavior::PropertyDeltaY()" - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyRotationAmplitudeX" - }, - "parameters": [ - "Object", - "Behavior", - "!=", - "0" - ] - } - ], - "actions": [ - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyDeltaAngleX" - }, - "parameters": [ - "Object", - "Behavior", - "=", - "ShakeObject3D::Noise2d(\"\", Object.Behavior::PropertyNoiseTime(), 4000) * Object.Behavior::PropertyRotationAmplitudeX() * Object.Behavior::SharedPropertyEasingFactor()" - ] - }, - { - "type": { - "value": "Scene3D::Model3DObject::SetRotationX" - }, - "parameters": [ - "Object", - "+", - "Object.Behavior::PropertyDeltaAngleX()" - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyRotationAmplitudeY" - }, - "parameters": [ - "Object", - "Behavior", - "!=", - "0" - ] - } - ], - "actions": [ - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyDeltaAngleY" - }, - "parameters": [ - "Object", - "Behavior", - "=", - "ShakeObject3D::Noise2d(\"\", Object.Behavior::PropertyNoiseTime(), 5000) * Object.Behavior::PropertyRotationAmplitudeY() * Object.Behavior::SharedPropertyEasingFactor()" - ] - }, - { - "type": { - "value": "Scene3D::Model3DObject::SetRotationY" - }, - "parameters": [ - "Object", - "+", - "Object.Behavior::PropertyDeltaAngleY()" - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyRotationAmplitudeZ" - }, - "parameters": [ - "Object", - "Behavior", - "!=", - "0" - ] - } - ], - "actions": [ - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyDeltaAngleZ" - }, - "parameters": [ - "Object", - "Behavior", - "=", - "ShakeObject3D::Noise2d(\"\", Object.Behavior::PropertyNoiseTime(), 6000) * Object.Behavior::PropertyRotationAmplitudeZ() * Object.Behavior::SharedPropertyEasingFactor()" - ] - }, - { - "type": { - "value": "SetAngle" - }, - "parameters": [ - "Object", - "+", - "Object.Behavior::PropertyDeltaAngleZ()" - ] - } - ] - } - ] - } - ], - "parameters": [ - { - "description": "Object", - "name": "Object", - "supplementaryInformation": "Scene3D::Model3DObject", - "type": "object" - }, - { - "description": "Behavior", - "name": "Behavior", - "supplementaryInformation": "ShakeObject3D::ShakeModel3D", - "type": "behavior" - } - ], - "objectGroups": [] - }, - { - "fullName": "", - "functionType": "Action", - "name": "doStepPreEvents", - "sentence": "", - "events": [ - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Revert the shaking.", - "comment2": "" - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::IsShaking" - }, - "parameters": [ - "Object", - "Behavior", - "" - ] - } - ], - "actions": [], - "events": [ - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyTranslationAmplitudeX" - }, - "parameters": [ - "Object", - "Behavior", - "!=", - "0" - ] - } - ], - "actions": [ - { - "type": { - "value": "MettreX" - }, - "parameters": [ - "Object", - "-", - "Object.Behavior::PropertyDeltaX()" - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyTranslationAmplitudeY" - }, - "parameters": [ - "Object", - "Behavior", - "!=", - "0" - ] - } - ], - "actions": [ - { - "type": { - "value": "MettreY" - }, - "parameters": [ - "Object", - "-", - "Object.Behavior::PropertyDeltaY()" - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyTranslationAmplitudeZ" - }, - "parameters": [ - "Object", - "Behavior", - "!=", - "0" - ] - } - ], - "actions": [ - { - "type": { - "value": "Scene3D::Model3DObject::SetZ" - }, - "parameters": [ - "Object", - "-", - "Object.Behavior::PropertyDeltaZ()" - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyRotationAmplitudeX" - }, - "parameters": [ - "Object", - "Behavior", - "!=", - "0" - ] - } - ], - "actions": [ - { - "type": { - "value": "Scene3D::Model3DObject::SetRotationX" - }, - "parameters": [ - "Object", - "-", - "Object.Behavior::PropertyDeltaAngleX()" - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyRotationAmplitudeY" - }, - "parameters": [ - "Object", - "Behavior", - "!=", - "0" - ] - } - ], - "actions": [ - { - "type": { - "value": "Scene3D::Model3DObject::SetRotationY" - }, - "parameters": [ - "Object", - "-", - "Object.Behavior::PropertyDeltaAngleY()" - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyRotationAmplitudeZ" - }, - "parameters": [ - "Object", - "Behavior", - "!=", - "0" - ] - } - ], - "actions": [ - { - "type": { - "value": "SetAngle" - }, - "parameters": [ - "Object", - "-", - "Object.Behavior::PropertyDeltaAngleZ()" - ] - } - ] - } - ] - } - ], - "parameters": [ - { - "description": "Object", - "name": "Object", - "supplementaryInformation": "Scene3D::Model3DObject", - "type": "object" - }, - { - "description": "Behavior", - "name": "Behavior", - "supplementaryInformation": "ShakeObject3D::ShakeModel3D", - "type": "behavior" - } - ], - "objectGroups": [] - }, - { - "description": "Shake the camera on layers chosen with configuration actions.", - "fullName": "Shake", - "functionType": "Action", - "name": "Shake", - "sentence": "Shake _PARAM0_ for _PARAM2_ seconds with _PARAM3_ seconds of easing to start and _PARAM4_ seconds to stop", - "events": [ - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [], - "actions": [ - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyTime" - }, - "parameters": [ - "Object", - "Behavior", - "=", - "0" - ] - }, - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyNoiseTime" - }, - "parameters": [ - "Object", - "Behavior", - "=", - "TimeFromStart() * Object.Behavior::Frequency()" - ] - }, - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyDuration" - }, - "parameters": [ - "Object", - "Behavior", - "=", - "GetArgumentAsNumber(\"Duration\")" - ] - }, - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyStartEasingDuration" - }, - "parameters": [ - "Object", - "Behavior", - "=", - "GetArgumentAsNumber(\"StartEaseDuration\")" - ] - }, - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyStopEasingDuration" - }, - "parameters": [ - "Object", - "Behavior", - "=", - "GetArgumentAsNumber(\"StopEaseDuration\")" - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "CompareArgumentAsNumber" - }, - "parameters": [ - "\"Duration\"", - "<", - "GetArgumentAsNumber(\"StartEaseDuration\") + GetArgumentAsNumber(\"StopEaseDuration\")" - ] - } - ], - "actions": [ - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyStartEasingDuration" - }, - "parameters": [ - "Object", - "Behavior", - "=", - "GetArgumentAsNumber(\"StartEaseDuration\") * Variable(__CameraShake.Duration) / (GetArgumentAsNumber(\"StartEaseDuration\") + GetArgumentAsNumber(\"StopEaseDuration\"))" - ] - }, - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyStopEasingDuration" - }, - "parameters": [ - "Object", - "Behavior", - "=", - "GetArgumentAsNumber(\"StopEaseDuration\") * Variable(__CameraShake.Duration) / (GetArgumentAsNumber(\"StartEaseDuration\") + GetArgumentAsNumber(\"StopEaseDuration\"))" - ] - } - ] - } - ], - "parameters": [ - { - "description": "Object", - "name": "Object", - "supplementaryInformation": "Scene3D::Model3DObject", - "type": "object" - }, - { - "description": "Behavior", - "name": "Behavior", - "supplementaryInformation": "ShakeObject3D::ShakeModel3D", - "type": "behavior" - }, - { - "description": "Duration (in seconds)", - "name": "Duration", - "type": "expression" - }, - { - "description": "Ease duration to start (in seconds)", - "name": "StartEaseDuration", - "type": "expression" - }, - { - "description": "Ease duration to stop (in seconds)", - "name": "StopEaseDuration", - "type": "expression" - } - ], - "objectGroups": [] - }, - { - "description": "Start shaking the camera indefinitely.", - "fullName": "Start shaking", - "functionType": "Action", - "name": "StartShaking", - "sentence": "Start shaking _PARAM0_ with _PARAM2_ seconds of easing", - "events": [ - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [], - "actions": [ - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyTime" - }, - "parameters": [ - "Object", - "Behavior", - "=", - "0" - ] - }, - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyNoiseTime" - }, - "parameters": [ - "Object", - "Behavior", - "=", - "TimeFromStart() * Object.Behavior::Frequency()" - ] - }, - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyDuration" - }, - "parameters": [ - "Object", - "Behavior", - "=", - "1234567890" - ] - }, - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyStartEasingDuration" - }, - "parameters": [ - "Object", - "Behavior", - "=", - "GetArgumentAsNumber(\"EaseDuration\")" - ] - } - ] - } - ], - "parameters": [ - { - "description": "Object", - "name": "Object", - "supplementaryInformation": "Scene3D::Model3DObject", - "type": "object" - }, - { - "description": "Behavior", - "name": "Behavior", - "supplementaryInformation": "ShakeObject3D::ShakeModel3D", - "type": "behavior" - }, - { - "description": "Ease duration (in seconds)", - "name": "EaseDuration", - "type": "expression" - } - ], - "objectGroups": [] - }, - { - "description": "Stop shaking the camera.", - "fullName": "Stop shaking", - "functionType": "Action", - "name": "StopShaking", - "sentence": "Stop shaking _PARAM0_ with _PARAM2_ seconds of easing", - "events": [ - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::IsShaking" - }, - "parameters": [ - "Object", - "Behavior", - "" - ] - } - ], - "actions": [ - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyTime" - }, - "parameters": [ - "Object", - "Behavior", - "=", - "0" - ] - }, - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyDuration" - }, - "parameters": [ - "Object", - "Behavior", - "=", - "GetArgumentAsNumber(\"EaseDuration\")" - ] - }, - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyStopEasingDuration" - }, - "parameters": [ - "Object", - "Behavior", - "=", - "GetArgumentAsNumber(\"EaseDuration\")" - ] - } - ] - } - ], - "parameters": [ - { - "description": "Object", - "name": "Object", - "supplementaryInformation": "Scene3D::Model3DObject", - "type": "object" - }, - { - "description": "Behavior", - "name": "Behavior", - "supplementaryInformation": "ShakeObject3D::ShakeModel3D", - "type": "behavior" - }, - { - "description": "Ease duration (in seconds)", - "name": "EaseDuration", - "type": "expression" - } - ], - "objectGroups": [] - }, - { - "description": "Check if the object is shaking.", - "fullName": "Is shaking", - "functionType": "Condition", - "name": "IsShaking", - "sentence": "_PARAM0_ is shaking", - "events": [ - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyTime" - }, - "parameters": [ - "Object", - "Behavior", - "<", - "Object.Behavior::PropertyDuration()" - ] - } - ], - "actions": [ - { - "type": { - "value": "SetReturnBoolean" - }, - "parameters": [ - "True" - ] - } - ] - } - ], - "parameters": [ - { - "description": "Object", - "name": "Object", - "supplementaryInformation": "Scene3D::Model3DObject", - "type": "object" - }, - { - "description": "Behavior", - "name": "Behavior", - "supplementaryInformation": "ShakeObject3D::ShakeModel3D", - "type": "behavior" - } - ], - "objectGroups": [] - }, - { - "description": "the shaking frequency of the object.", - "fullName": "Shaking frequency", - "functionType": "ExpressionAndCondition", - "group": "ShakeObject3D configuration", - "name": "Frequency", - "sentence": "the shaking frequency", - "events": [ - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [], - "actions": [ - { - "type": { - "value": "SetReturnNumber" - }, - "parameters": [ - "Object.Behavior::PropertyFrequency()" - ] - } - ] - } - ], - "expressionType": { - "type": "expression" - }, - "parameters": [ - { - "description": "Object", - "name": "Object", - "supplementaryInformation": "Scene3D::Model3DObject", - "type": "object" - }, - { - "description": "Behavior", - "name": "Behavior", - "supplementaryInformation": "ShakeObject3D::ShakeModel3D", - "type": "behavior" - } - ], - "objectGroups": [] - }, - { - "fullName": "", - "functionType": "ActionWithOperator", - "getterName": "Frequency", - "name": "SetFrequency", - "sentence": "", - "events": [ - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [], - "actions": [ - { - "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyFrequency" - }, - "parameters": [ - "Object", - "Behavior", - "=", - "GetArgumentAsNumber(\"Value\")" - ] - } - ] - } - ], - "parameters": [ - { - "description": "Object", - "name": "Object", - "supplementaryInformation": "Scene3D::Model3DObject", - "type": "object" - }, - { - "description": "Behavior", - "name": "Behavior", - "supplementaryInformation": "ShakeObject3D::ShakeModel3D", - "type": "behavior" - } - ], - "objectGroups": [] - } - ], - "propertyDescriptors": [ - { - "value": "4", - "type": "Number", - "unit": "Pixel", - "label": "Translation amplitude on X axis", - "description": "", - "group": "", - "extraInformation": [], - "hidden": false, - "name": "TranslationAmplitudeX" - }, - { - "value": "0", - "type": "Number", - "unit": "Pixel", - "label": "Translation amplitude on Y axis", - "description": "", - "group": "", - "extraInformation": [], - "hidden": false, - "name": "TranslationAmplitudeY" - }, - { - "value": "0", - "type": "Number", - "unit": "Pixel", - "label": "Translation amplitude on Z axis", - "description": "", - "group": "", - "extraInformation": [], - "hidden": false, - "name": "TranslationAmplitudeZ" - }, - { - "value": "5", - "type": "Number", - "unit": "DegreeAngle", - "label": "Rotation amplitude around X axis", - "description": "", - "group": "", - "extraInformation": [], - "hidden": false, - "name": "RotationAmplitudeX" - }, - { - "value": "5", - "type": "Number", - "unit": "DegreeAngle", - "label": "Rotation amplitude around Y axis", - "description": "", - "group": "", - "extraInformation": [], - "hidden": false, - "name": "RotationAmplitudeY" - }, - { - "value": "5", - "type": "Number", - "unit": "DegreeAngle", - "label": "Rotation amplitude around Z axis", - "description": "", - "group": "", - "extraInformation": [], - "hidden": false, - "name": "RotationAmplitudeZ" - }, - { - "value": "", - "type": "Number", - "label": "", - "description": "", - "group": "", - "extraInformation": [], - "hidden": true, - "name": "Time" - }, - { - "value": "", - "type": "Number", - "label": "", - "description": "", - "group": "", - "extraInformation": [], - "hidden": true, - "name": "Duration" - }, - { - "value": "", - "type": "Number", - "label": "", - "description": "", - "group": "", - "extraInformation": [], - "hidden": true, - "name": "StartEasingDuration" - }, - { - "value": "", - "type": "Number", - "label": "", - "description": "", - "group": "", - "extraInformation": [], - "hidden": true, - "name": "StopEasingDuration" - }, + "extraInformation": [ + "Scene3D::Base3DBehavior" + ], + "hidden": false, + "name": "Object3D" + }, { "value": "", - "type": "Number", - "label": "Frequency", + "type": "Boolean", + "label": "Start to shake at the object creation", "description": "", "group": "", "extraInformation": [], "hidden": false, - "name": "Frequency" - }, - { - "value": "", - "type": "Number", - "label": "", - "description": "", - "group": "", - "extraInformation": [], - "hidden": true, - "name": "DeltaX" - }, - { - "value": "", - "type": "Number", - "label": "", - "description": "", - "group": "", - "extraInformation": [], - "hidden": true, - "name": "DeltaY" - }, - { - "value": "", - "type": "Number", - "label": "", - "description": "", - "group": "", - "extraInformation": [], - "hidden": true, - "name": "DeltaZ" - }, - { - "value": "", - "type": "Number", - "label": "", - "description": "", - "group": "", - "extraInformation": [], - "hidden": true, - "name": "DeltaAngleX" - }, - { - "value": "", - "type": "Number", - "label": "", - "description": "", - "group": "", - "extraInformation": [], - "hidden": true, - "name": "DeltaAngleY" - }, - { - "value": "", - "type": "Number", - "label": "", - "description": "", - "group": "", - "extraInformation": [], - "hidden": true, - "name": "DeltaAngleZ" - }, - { - "value": "", - "type": "Number", - "label": "", - "description": "", - "group": "", - "extraInformation": [], - "hidden": true, - "name": "NoiseTime" + "name": "IsStartingAtCreation" } ], "sharedPropertyDescriptors": [