• Content count

  • Joined

  • Last visited

  1. Question regarding 3D model asset

    Awesome! So I assume that if we export it as a glTF file, it should work?
  2. Can an artist create 3D models using both triangles and quads that can be used in babylon.js? I would assume yes, but I just wanted to make sure.
  3. Swapping clothings on a character model

    Thanks for the advice. What would I do in the case that I have different meshes for different items and clothings, what would be the best approach in that case?
  4. Hi everyone, I am new to Babylon.js and 3D programming in general. I was wondering what would be the best way of swapping out clothings and other items on a character model in Babylon.js? Should I swap using textures (though this probably wouldn't work very well for items that a character holds)? Or is there a better way of doing it? Thanks for any advices.
  5. I have a ball that is 26x26 and I am trying to make it change direction when it collides with an object. My code looks something like this: let collideP1 = game.physics.arcade.collide(ball, p1); if (collideP1) { ball.body.velocity.x = -ball.body.velocity.x; } This code gets called in the update() method. However when a ball hits a rectangular object, the movement stops. How do I properly get it to change direction? Please let me know if I need to add more code.