vujadin / BabylonHx

Port of Babylon.js 3D engine to Haxe.
http:/paradoxplay.com/babylonhx
Apache License 2.0
189 stars 43 forks source link

Pick / wrong position #120

Closed mightymarcus closed 7 years ago

mightymarcus commented 8 years ago

http://www.babylonjs-playground.com/#1FW1OU#0

I'm doing the same with BHx. When the mouse is top left of the window, the mesh is a position -1, 1, top right on 1, 1, bottom left, -1, -1, bottom right 1, -1. But I want - like with babylonjs - that the mesh moves with the mouse.

mightymarcus commented 8 years ago

Ok, I tried an older game I made.

http://balanceoftower.com/

When you click on a shape you can move it with the mouse, as expected. When I compile that with the newest BHx version the pick is broken and I can't move the mesh anymore.

Maybe I can fix that by myself when I look at older source code, but I don't think so. ;)

mightymarcus commented 7 years ago

Hi. Are you going to fix the broken pick function some day? I would like to use newest babylonhx.

vujadin commented 7 years ago

Hi, sure will. I've finished 2D api, will push it tonight. I'll fix picking after that

mightymarcus commented 7 years ago

Great news.