GetRoomObjectScreenLocation.ts 390 o
Télécharger le fichier
import { GetRoomEngine } from '@octane/renderer';
export const GetRoomObjectScreenLocation = (roomId: number, objectId: number, category: number, canvasId = 1) => {
const point = GetRoomEngine().getRoomObjectScreenLocation(roomId, objectId, category, canvasId);
if (!point) return null;
point.x = Math.round(point.x);
point.y = Math.round(point.y);
return point;
};
