polygonjs-engine
Version:
node-based webgl 3D engine https://polygonjs.com
39 lines (38 loc) • 1.77 kB
TypeScript
/**
* Allows easy position of lights, or any object around another one.
*
* @remarks
* This node transforms its children with latitude and longitude controls, instead of typical translate and rotate. It makes it more intuitive to position objects such as lights.
*
*/
import { TypedObjNode } from './_Base';
import { Group } from 'three/src/objects/Group';
import { FlagsControllerD } from '../utils/FlagsController';
import { HierarchyController } from './utils/HierarchyController';
import { NodeParamsConfig } from '../utils/params/ParamsConfig';
declare class PolarTransformObjParamConfig extends NodeParamsConfig {
center: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.VECTOR3>;
longitude: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.FLOAT>;
latitude: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.FLOAT>;
depth: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.FLOAT>;
}
export declare class PolarTransformObjNode extends TypedObjNode<Group, PolarTransformObjParamConfig> {
params_config: PolarTransformObjParamConfig;
static type(): string;
readonly hierarchy_controller: HierarchyController;
readonly flags: FlagsControllerD;
private _helper;
create_object(): Group;
initializeNode(): void;
private _updateHelperHierarchy;
private _cook_main_without_inputs_when_dirty_bound;
private _cook_main_without_inputs_when_dirty;
private _centerMatrix;
private _longitudeMatrix;
private _latitudeMatrix;
private _depthMatrix;
private _fullMatrix;
private _decomposed;
cook(): void;
}
export {};