RigidBody.prototype.onTriggerEnter = function (triggerEntity) {
this.a2 = this.app.root.findByName('a2');
if(triggerEntity.tags.has('player')){
setTimeout(() => { this.a2.rigidbody.type = pc.BODYTYPE_DYNAMIC; }, 500);
}
Hi @Ozden_Delibas,
Try explaining a bit more on your situation. Are you getting any error? What is your expected outcome?
2 Likes