xamarin / urho

Code to integrate with the Urho3D engine
Other
462 stars 122 forks source link

Missing TileMap2D.PositionToTileIndex() #138

Closed vans163 closed 6 years ago

vans163 commented 8 years ago

I need to convert a user click on a TileMap2D into the x,y tile that was clicked. So far the docs say to use

PositionToTileIndex() to convert Urho position to tile index (returns false if position is outside of the map)

but PositionToTileIndex is not exposed in UrhoSharp.

Perhaps related http://urho3d.prophpbb.com/topic2211.html, but you can see the long winded solution to do what PositionToTileIndex does.

EgorBo commented 8 years ago

@vans163 looks like it was added recently to Urho3D. I'll update the bindings.

EgorBo commented 6 years ago

Surfaced.