implement first person hand

(cherry picked from commit bfe5a2eaca2858a7ccde1df847e2148dd79f4045)
This commit is contained in:
LabyStudio
2022-05-02 02:45:24 +02:00
parent 230ea8d11e
commit 800134b26b
18 changed files with 345 additions and 114 deletions
+2 -2
View File
@@ -521,13 +521,13 @@ export default class World {
addEntity(entity) {
this.entities.push(entity);
this.group.add(entity.group);
this.group.add(entity.renderer.group);
}
removeEntityById(id) {
let entity = this.getEntityById(id);
this.entities.remove(entity);
this.group.remove(entity.group);
this.group.remove(entity.renderer.group);
}
getEntityById(id) {