26
2012
Monotone Chain Convex Hull Algorithm

Finally got atleast some 2D convex hull algorithm working.. this one is converted from those Java & Python versions.
Converted the java version first and it kept giving strange results, then took the sub() from python and it worked rightaway..
Now can try this for the shadow casting test, should be possible to cast somekind of shadows to a flat surface(?)
It was quite difficult to sort an Vector3 array with javascript in Unity..
founded some help from unity answers, but most of those examples didnt seem to work without modifications..
Webplayer:
nothing much to see on it..
Download source:
MonotoneChainConvexHull.unitypackage (javascript)
Related Posts
5 Comments + Add Comment
Leave a comment
Recent posts
- Adding Real World Location to Ice Fishing Prototype
- [web tool] Image Channel Inspector : AlphaScope
- Editor Tool: Smart Recompile (don’t recompile if edit comments)
- Editor Tool: Scene Size Analyzer
- LudumDare 60: Old Tech
- uBasic Scripting Language for Unity
- GreaseMonkey+Editor Plugin: 1-Click Copy script from ChatGPT (Web) to Unity Editor (as script)
- Editor Tool: Property Watcher
- .unityignore : Hide files from Project window
- PostBuild Script to Create Single exe Standalone File
- Game Loop Designer
- Favorites in PackageManager
Recent Comments
Coin:
CUgDSbRqFcAumDSAcdKDvuXsw26VdkJe8C8WGUQHBAGS
An article by












Can I please get this code to play with looks very interesting!? 🙂
Source added!
convex hull (source):
http://community.topcoder.com/tc?module=Static&d1=tutorials&d2=geometry2
Could I use this script in my game?
yes, it was originally just converted to unityscript from some of those wikipedia articles/links..