So I want to make class (that will be in the world) and could find closest class to himself.
Let's say I want lemon to get closest object to lemon and get x and y coordinates, get id because there is 3 same class objects so they has their own id like 0 , 1 and 2 .
is is possible to write something like this ?Could someone show me and example ?
waiting for answer,
Thanks
Let's say I want lemon to get closest object to lemon and get x and y coordinates, get id because there is 3 same class objects so they has their own id like 0 , 1 and 2 .
is is possible to write something like this ?Could someone show me and example ?
waiting for answer,
Thanks
