phoboslab / Impact

HTML5 Game Engine
MIT License
1.99k stars 204 forks source link

Trigger Question #76

Open yarnottc7892 opened 4 years ago

yarnottc7892 commented 4 years ago

I have question about Collision. So I am trying to do a trigger and I can't get the check function to work. On either of my objects, is there something I have to so to enable that? I am really confused on why it is not working. I followed the weltmeister guide on triggers and it is not working. I am attaching my trigger and player .js file. Any help is appreciated.

Trigger Code: TriggerCode

Player Code: PlayerCode

Joncom commented 4 years ago

Looks OK to me. So you’re expecting a message “it works” to be logged when the player touches the trigger, but that never happens, right?

Can you enable debug draw boxes, and confirm that the player is in fact colliding with the trigger visually?