Git Product home page Git Product logo

Comments (3)

lewster32 avatar lewster32 commented on June 10, 2024

That line ensures that the cube you're testing has at least some volume to it; if any of the dimensions of the cube are 0 or negative, then the cube technically has a volume of 0, and cannot contain a point. Maybe though, in this case, the function should not be checking height, as height is not a requirement for the XY check anyway. I wonder if the line should be changed to:

if (a.widthX <= 0 || a.widthY <= 0) {

Could you upload an example so I can be sure this is the issue before I make any changes?

from phaser-plugin-isometric.

mfpierre avatar mfpierre commented on June 10, 2024

Okay, the height is definitely the issue here because for a 64x32 tile the height calculated is 0 (32 - 64/2).

Here is the fiddle to test the issue http://jsfiddle.net/zbm95089/

This is a problem because I can not make "flat" tiles having mouse interactions (typically the floor tiles).

from phaser-plugin-isometric.

lewster32 avatar lewster32 commented on June 10, 2024

Excellent, thanks for spotting and fixing! 👍

from phaser-plugin-isometric.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.