@megavr/ecsy-babylon
Version:
babylon.js ecsy binding and helpers
18 lines (17 loc) • 368 B
JavaScript
import { xyz } from "../utils/mathUtils";
/**
* @example
* ```
* entity.addComponent(Transform);
* ```
*/
export class Transform {
constructor() {
/** @default 0,0,0 */
this.position = xyz();
/** @default 0,0,0 */
this.rotation = xyz();
/** @default 1,1,1 */
this.scale = xyz(1, 1, 1);
}
}