in unity you can have an animation set up to trigger if another touches it… is there a way of doing something similar here?
Hi @jono3d,
You can use the collision component to set up trigger zones, here is a tutorial:
https://developer.playcanvas.com/en/tutorials/collision-and-triggers/
2 Likes
Hi @jono3d,
This actually is in PlayCanvas but you will have to make two lines of script:
this.entity.collision.on("triggerenter",myFunction,this);
and
this.entity.collision.on("triggerleave",myFunction,this);
Hope this helps!
2 Likes