UNPKG

@megavr/ecsy-babylon

Version:

babylon.js ecsy binding and helpers

17 lines (16 loc) 382 B
import { XYZProperties } from "./types/index"; import { xyz } from "../utils/mathUtils"; /** * @example * ``` * entity.addComponent(Transform); * ``` */ export class Transform { /** @default 0,0,0 */ position: XYZProperties = xyz(); /** @default 0,0,0 */ rotation: XYZProperties = xyz(); /** @default 1,1,1 */ scale: XYZProperties = xyz(1, 1, 1); }