move this.bodyEl.components[bodyType] into the checks (in case the body component doesn't exist yet)
move this.bodyEl.components[bodyType] into the checks (in case the body component doesn't exist yet)

donmccurdy/aframe-physics-system