@dcl-sdk/utils
Version:
A collection of helpers to make it easier to build a Decentraland scene using the SDK 7.
9 lines (8 loc) • 525 B
TypeScript
import { Entity, EasingFunction } from '@dcl/sdk/ecs';
import { Vector3 } from '@dcl/sdk/math';
import { InterpolationType } from './math';
export declare function getEntitiesWithParent(parent: Entity): Entity[];
export declare function getEntityParent(child: Entity): Entity;
export declare function getPlayerPosition(): Vector3;
export declare function playSound(file: string, loop?: boolean, position?: Vector3): Entity;
export declare function getEasingFunctionFromInterpolation(type: InterpolationType): EasingFunction;