123456789101112131415161718192021222324252627282930313233343536373839 |
- import { Strategy } from "./strategy.js";
- /**
- * YUp策略类
- */
- export class YUpLStrategy extends Strategy {
- /**
- * 原点姿态
- * @type {Object}
- */
- originPointPose = null;
- /**
- * 统一坐标系统
- * @param {Object} model - 模型
- * @param {Object} worldPose - 世界姿态
- */
- unifiedCoordinateSystem(model, worldPose) {
- console.log("Y-up: beforeAddApplyMatrix");
- }
- /**
- * 设置本地原点姿态
- * @param {Object} worldPose - 世界姿态
- */
- setLocalOriginPose(worldPose) {
- this.originPointPose = worldPose;
- console.log("Y-up: convertLocalToWorld");
- }
- /**
- * 转换本地到世界
- * @param {Object} model - 模型
- * @param {Object} localPosition - 本地位置
- */
- convertLocalToWorld(model, localPosition) {
- console.log("Y-up: convertLocalToWorld");
- }
- }
|