UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

44 lines (43 loc) 2.22 kB
/** * Updates an object using left/right/froward/backward/run/jump events * * */ import { TypedJsNode } from './_Base'; import { NodeParamsConfig } from '../utils/params/ParamsConfig'; import { JsLinesCollectionController } from './code/utils/JsLinesCollectionController'; export declare enum PlayerUpdateInput { COLLIDER = "collider" } export declare enum PlayerUpdateOutput { VELOCITY = "velocity", ON_GROUND = "onGround" } declare class PlayerUpdateJsParamsConfig extends NodeParamsConfig { /** @param travel speed */ speed: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.FLOAT>; /** @param run Allowed */ runAllowed: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.BOOLEAN>; /** @param jump Force */ runSpeedMult: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.FLOAT>; /** @param jump Allowed */ jumpAllowed: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.BOOLEAN>; /** @param jump Force */ jumpStrength: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.FLOAT>; /** @param physics Steps */ physicsSteps: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.INTEGER>; /** @param gravity */ gravity: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.VECTOR3>; /** @param collision Capsule Radius */ capsuleRadius: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.FLOAT>; /** @param collision Capsule Height */ capsuleHeight: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.FLOAT>; } export declare class PlayerUpdateJsNode extends TypedJsNode<PlayerUpdateJsParamsConfig> { readonly paramsConfig: PlayerUpdateJsParamsConfig; static type(): string; initializeNode(): void; setTriggerableLines(shadersCollectionController: JsLinesCollectionController): void; setLines(shadersCollectionController: JsLinesCollectionController): void; } export {};