🪖 Moves modelloader to model-utilities

This commit is contained in:
Rune Harlyk
2024-02-22 23:51:53 +01:00
parent 5e789fce38
commit e2291813a5
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -2,3 +2,5 @@ export * from './result'
export * from './string-utilities'
export * from './svelte-utilities'
export * from './math-utilities'
export * from './buffer-utilities'
export * from './model-utilities'
@@ -19,7 +19,7 @@ export const loadModelAsync = async (url:string):Promise<[URDFRobot, string[]]>
model.updateMatrixWorld(true);
model.scale.setScalar(10);
const joints = Object.entries(model.joints)
.filter(joint => joint[1]._jointType !== 'fixed')
.filter(joint => joint[1].jointType !== 'fixed')
.map(joint => joint[0])
resolve([model, joints]);