Using trigonometry for collision detection doesn’t work in some cases

I’ve been playing around with the trigonometric functions recently to create a collision detection system. While I’ve successfully created this for the most part I’m running into some issues.

I tested using a drag behaviour which worked fine but when I started to move object on their own using the move trigger I started to run into problems. It seems ProtoPie doesn’t actually move objects frame by frame in some cases causing collision detection to fail. I thought I got around this by making sure I’m writing all position values to variables and then passing them into a component but it doesn’t seem to be working.

The other thing I was considering might be an issue is frame rate but even when I slow an object down it doesnt trigger collision.

if anyone has solved this or knows what the issue is then it would be great to get your experiences and possible solutions.

It’s a shame as it was all working great with drag and I was quite pleased with myself!