Hi!
mouseOver, mouseUp, mouseLeave fire over red box...
how to make fire mouse events inside 3d bounds (green line area) ?
mouse hit over 3d entities
- coolbloke1324
- Posts: 181
- Joined: Mon Jan 23, 2012 5:20 pm
Re: mouse hit over 3d entities
Hi ya!stokaboka wrote:Hi!
mouseOver, mouseUp, mouseLeave fire over red box...
how to make fire mouse events inside 3d bounds (green line area) ?
I have updated the engine to allow for mouse picking / intersection checking with iso-3d bounds. The updates have been pushed to the dev branch in the premium repo, version 1.2.8.
You can see how it works in example 14.1-isoobjects as you move the mouse over the isometric objects they are highlighted.
To make mouse events work based on the 3d bounds you can just set:
Code: Select all
entity.mouseEventTrigger('isoBounds');
Let me know if that works ok and if that is what you needed!
Re: mouse hit over 3d entities
thanks Rob!
it works perfectly, exactly as expected )
but.... I can use v1.2.8 @ 2013-10-22.002 a production application ?
this is dev branch...
Code: Select all
entity.mouseEventTrigger('isoBounds');
but.... I can use v1.2.8 @ 2013-10-22.002 a production application ?
this is dev branch...
- coolbloke1324
- Posts: 181
- Joined: Mon Jan 23, 2012 5:20 pm
Re: mouse hit over 3d entities
Hey ya. Yes that should be fine. This version has been tested and it did not break any existing functionality.
The dev branch will be merged into master next week.
The dev branch will be merged into master next week.
-
- Posts: 12
- Joined: Fri Aug 30, 2013 9:21 am
Re: mouse hit over 3d entities
Hi, I've just downloaded again the engine, but it has downloaded v1.2.4@2013-10-07.001 version and not the latest you told.
-
- Posts: 12
- Joined: Fri Aug 30, 2013 9:21 am
Re: mouse hit over 3d entities
Found! xD Really great update!
- coolbloke1324
- Posts: 181
- Joined: Mon Jan 23, 2012 5:20 pm
Re: mouse hit over 3d entities
Thanksalex_king92 wrote:Found! xD Really great update!