add barrier property to game object
add near search function in API