assetmodel creation and adding for namespace socket

This commit is contained in:
2025-04-01 13:27:25 +05:30
parent d8d9a7c837
commit 5db6153bb9
13 changed files with 1241 additions and 828 deletions

View File

@@ -33,8 +33,13 @@ export interface assetData extends Document {
];
}[];
}[];
assetPosition: number[];
assetRotation: number[];
position: [];
// rotation: [];
rotation: {
x: number;
y: number;
z: number;
};
speed: number | string;
}
@@ -66,16 +71,16 @@ const assetDataSchema: Schema = new Schema({
},
},
],
assetPosition: { type: [Number] },
assetRotation: { type: [Number] },
position: { type: Array},
// rotation: { type: Array},
rotation: {
x: { type: Number },
y: { type: Number },
z: { type: Number },
},
speed: { type: Schema.Types.Mixed },
isLocked: { type: Boolean },
isVisible: { type: Boolean },
// rotation: {
// x: { type: Number },
// y: { type: Number },
// z: { type: Number },
// },
});
// export default floorItemsModel;