Is there a way to detect collision for given two collider points of sprite
indiVar0508 opened this issue · comments
Hi
I am new to Rusty Engine and Rust in particular, recently started exploring it after your Rust intermediate course,
Was trying to write a logic and was wondering if there is a way to compute if two sprites are still colliding or not as it seems collisionEvent is generated once as collision happens for me i have some logic that i check after the event and if it still persists
i need to declare it as game over.
Do you have any suggestions for this or is there a public method available that takes two sprites and tells weather they are colliding or not.?
Thanks
Sure! You should be able to call Collider::colliding(sprite1, sprite2)
to check if two sprites are colliding.