# Enzo

Members

6

• Rank
Newbie

## Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

1. ## Runandrisk.io: My first io game

I just added some kind of bot. At least for now.
2. ## Runandrisk.io: My first io game

Yes, agree on that, at least for the beginning. Thank you for the advice.
3. ## Runandrisk.io: My first io game

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)
4. ## Combine rotation XZ (horizontal) with YZ (vertical)

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
5. ## Combine rotation XZ (horizontal) with YZ (vertical)

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.
6. ## Is there any success case for mobile game using WebGl and Progressive Web Apps?

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.
×