Hello all, I’m new in PlayCanvas and I’m making some small games to understand if the game engine can fit my needs.
I have a problem with the triggerenter event, this event seems to be raised on the trigger entity (the one with only the collision component) but not on the rigidbody entity (the one with both rigidbody (kinematic) and collision component). From the documentation (https://developer.playcanvas.com/en/api/pc.CollisionComponent.html) it seems that this event should be raised on both the trigger entity and rigidbody entity.
This is the test scene: https://playcanvas.com/editor/scene/848732
I have a BallProva script that register onTriggerEnter to triggerenter event. If I add BallProva to the trigger entity (LeftWallTest) it print correctly on the console (so the event is rised). If I add BallProva to the rigidbody entity (BallTest) there are no print to the console (so the event is not rised).
What is wrong with my script?