Skip to content

Commit

Permalink
update polarTransform longitude range
Browse files Browse the repository at this point in the history
  • Loading branch information
frading committed Jul 14, 2022
1 parent a088ec5 commit e6fb19f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/engine/nodes/obj/PolarTransform.ts
Expand Up @@ -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, {
Expand Down
2 changes: 1 addition & 1 deletion src/engine/nodes/sop/PolarTransform.ts
Expand Up @@ -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, {
Expand Down

0 comments on commit e6fb19f

Please sign in to comment.