• Content Count

  • Joined

  • Last visited

  1. Yes, agree on that, at least for the beginning. Thank you for the advice.
  2. I've been working in this game for a few months. The concept is something more or less new. Is like the Risk tabletop game but in real time. At this moment is in beta and I want to change some things of the rules. But is playable. Is for 3-4 players. Made with three.js and react-create-app basically. https://runandrisk.io/ Screenshot (Getting error uploading here)
  3. What I really needed was a way to translate a polar/spherical coordinates into cartesian coordinates. In other words, I have two angles and one radius and a need to convert it into a Vector3/XYZ. Here is the code: function polarToCartesian( angleV, angleH, radius ) { var phi = ( 90 - angleV ) * DEG2RAD var theta = ( angleH + 180 ) * DEG2RAD return { x: -(radius * Math.sin(phi) * Math.sin(theta)), y: radius * Math.cos(phi), z: radius * Math.sin(phi) * Math.cos(theta), } } Source: https://gist.github.com/jhermsmeier/72626d5fd79c5875248fd2c1e8162489
  4. I'm trying to make a rotation vertically and horizontally around a point at the same time but I'm not able to combine both. I have this formula for the horizontal rotation: camera.position.x = x * Math.cos(inc) + z * Math.sin(inc) camera.position.z = z * Math.cos(inc) - x * Math.sin(inc) And this one for the vertical: camera.position.y = y * Math.cos(inc) + z * Math.sin(inc) camera.position.z = z * Math.cos(inc) - y * Math.sin(inc) Here an example with Three.js: https://codepen.io/josema/pen/xyQoga. The idea is to make the vertical rotation with de mouse.
  5. Hi, does anybody know a professional/real mobile game made with Three.js/Babylon.js/Playcanvas? It seems like no one is betting for these technologies and goes for Unity or similar.