var entity = this.app.root.findByName("bullet").clone();
this.entity.addChild(entity);
entity.enabled = true;
this.entity.findByName("entity").rigidbody.applyForce(0, 10, 0);
this is the code i am using to clone my template bullet in my fps game. it is fired when i click ‘e’. (i need to change it to the lmb). It’s not working and i can’t figure out why. I would appreciate the help i can get.
https://playcanvas.com/project/1027777/overview/idk-at-this-point