Hamilcare / TarponSimulator2017

8 stars 0 forks source link

Implement a basic mechanism that detect if the float can be eaten by the fish #22

Open superboum opened 6 years ago

llabadie commented 6 years ago

I don't see what you mean by that. Is it like, if the fish is in range ?

Hamilcare commented 6 years ago

exactly

llabadie commented 6 years ago

We could define the range of the fishing rod, its position and its direction. Then some kind of look up for the fishes. Then we have I guess two solution to check the range. 1) we look if the fish position is in the triangle defining the fishing rod range. 2) To make easier the comparison we re-define the position of the fish within the plan of the fishing rod (the origin of the plan would be the position of the fishing rod) and then check is the fish is within. Am I understandable ? What do you think about this solution ?

Hamilcare commented 6 years ago

related to #30

superboum commented 6 years ago

Can we close this issue?