|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: Export HTML5 plug-in » » » » Post: Re: Export HTML5 plug-in |
Print at Dec 16, 2025, 10:02:13 AM |
| Posted by boe666 at Dec 11, 2018, 2:35:58 PM |
|
Re: Export HTML5 plug-in Can I check this getClosestItemAt method ? Where is object's coordinates ? If I write x an y direct in code - this method still return null. I take x y coordinates from js console after selected object by code. i.e.: selecting object: and I take x y from itemSel[0].x and itemSel[0].y I write this to my listener (from now always return this coordinates), and still i have null after use getClosestItemAt(x,y). I thought i have to translate x,y from mouse, to have always the same coordinates, independed from actual view of camera, coresponding with object's x and y. |
|
|
Current timezone is GMT Dec 16, 2025, 10:02:13 AM |