the-world-engine
Version:
three.js based, unity like game engine for browser
22 lines (21 loc) • 725 B
TypeScript
import { ZaxisSortable } from "./ZaxisSortable";
/**
* Determine the z-value of the object based on the z-position of the camera
*
* This component is mainly used to create top-down 2D games.
*
* You can use this component on objects like tilemaps that must always be a certain distance away from the camera
*/
export declare class CameraRelativeZaxisSorter extends ZaxisSortable {
readonly disallowMultipleComponent: boolean;
private _offset;
update(): void;
/**
* The offset to be added to the z-position of the camera (default: -100)
*/
get offset(): number;
/**
* The offset to be added to the z-position of the camera (default: -100)
*/
set offset(value: number);
}