- Home /
Question by
CodeAssassin · Dec 08, 2016 at 06:43 AM ·
unity 5conversionpolygons
converting IntPoint to Vector3
Hey all!
I'm using the Clipper Polygon Library to create a 2D Nav Mesh editor in unity and while I've gotten the library to work an edit polygons accordingly, the coordinates are not the same (due to clipper primarily working off of an integers and not floating points). Does anyone know how I can go about converting an IntPoint back to a float to store my Vector3 vertices? Someone mentioned using a scaleFactor but I'm not entirely sure how to approach something like this.
Thanks for your help =)
Comment
Your answer
Follow this Question
Related Questions
Good way to convert an int to a string each frame? 1 Answer
Object to JSON Conversion 2 Answers
Broken wrapping in Unity 5.0 0 Answers