From e6fb19f00b8b9b49c917238c65240c010726840a Mon Sep 17 00:00:00 2001 From: Guillaume Fradin Date: Thu, 14 Jul 2022 23:38:59 +0100 Subject: [PATCH] update polarTransform longitude range --- src/engine/nodes/obj/PolarTransform.ts | 2 +- src/engine/nodes/sop/PolarTransform.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/nodes/obj/PolarTransform.ts b/src/engine/nodes/obj/PolarTransform.ts index a8bbe30da..05b686ded 100644 --- a/src/engine/nodes/obj/PolarTransform.ts +++ b/src/engine/nodes/obj/PolarTransform.ts @@ -23,7 +23,7 @@ class PolarTransformObjParamConfig extends NodeParamsConfig { center = ParamConfig.VECTOR3([0, 0, 0]); /** @param moves the objects along the longitude, which is equivalent to a rotation on the y axis */ longitude = ParamConfig.FLOAT(0, { - range: [0, 360], + range: [-360, 360], }); /** @param moves the objects along the latitude, which is equivalent to a rotation on the z or x axis */ latitude = ParamConfig.FLOAT(0, { diff --git a/src/engine/nodes/sop/PolarTransform.ts b/src/engine/nodes/sop/PolarTransform.ts index ebfb1f862..0e067602b 100644 --- a/src/engine/nodes/sop/PolarTransform.ts +++ b/src/engine/nodes/sop/PolarTransform.ts @@ -27,7 +27,7 @@ class PolarTransformSopParamConfig extends NodeParamsConfig { center = ParamConfig.VECTOR3(DEFAULT.center.toArray()); /** @param moves the objects along the longitude, which is equivalent to a rotation on the y axis */ longitude = ParamConfig.FLOAT(DEFAULT.longitude, { - range: [0, 360], + range: [-360, 360], }); /** @param moves the objects along the latitude, which is equivalent to a rotation on the z or x axis */ latitude = ParamConfig.FLOAT(DEFAULT.latitude, {