viromedia/viro

How to check target in rectangle in the middle of the screen

tnghia944 opened this issue · 2 comments

Hi @dthian and everyone, let me ask how to check the target in the rectangle in the middle of the screen
I used ViroARImageMarker and the onHover function when the target was hovering, but I don't know how to check when the target is in my rectangle.
because each time the app recognizes the target func on the Hover there is a different position.
<ViroARImageMarker target={"test"}
onAnchorFound={
(event) => {
console.log('event',event)
}}
onHover = { (hover, position, source) => {
console.log('eventonHover',hover)
console.log('eventonHover position',position)
//HOW TO CHECK IF HOVER = true
}}
>

aaa

I am also looking for such a solution, is there a way

@VikAdvani @ThanhNghia944 @dthian Can you help me pls