• Content Count

  • Joined

  • Last visited

About Champa

  • Rank
  • Birthday 10/14/1990

Profile Information

  • Gender
  • Location
    Bosnia & Herzegovina
  • Interests
    PHP, Node.js, Babylon.js, MySQL, HTML & CSS, Basketball

Contact Methods

  • Twitter

Recent Profile Visitors

574 profile views
  1. I'm building an mp game that needs to have some sort of a queue system (eg League of Legends, CSGO, Dota2...) So my question is how to implement such ? I mean the core concept (I'm not looking for done code, even though some code would be welcome) EDIT: I have created a lobby system where you can invite players and if they accept their id is put into the lobby array and the lobby id is returned to them on client side. So the problem now is when the lobby creator hits the start queue button... How to find other lobbies that combine 8 players (2 teams of 4) but leaves the premade players in the same team
  2. I'm building an mp game that needs to have some sort of a queue system (eg League of Legends, CSGO, Dota2...) So my question is how to implement such ? I mean the core concept (I'm not looking for done code)
  3. Sry for not anwsering and yes it was a blender problem Thanks for the help !
  4. Hi ! I can't get the playground to work, but I have provided you with the .blend file in PM so if you can check it out it would be great!
  5. I'll be doing this in half an hour and update the post
  6. It just makes it worse I'll try this now EDIT: Here is a screen shot of what it says:
  7. I made a character in blender that is low polly But when I load it in the game, its missing the front side of his face and some back pieces
  8. Uhhh, my problem is not the collision but not able to jump on meshes I cant jump on some object that are somewhat lower than the camera
  9. Hey @Pouet I'm actually not moving meshes with the jump function but the camera (Its a FPS game) _createCamera : function(){ var camera = new BABYLON.FreeCamera("playerCamera", this.spawnpoint, this.scene); camera.attachControl(this.scene.getEngine().getRenderingCanvas(), false); camera.ellipsoid = new BABYLON.Vector3(2, 10, 2); //camera.collisionRadius = new BABYLON.Vector3(0.5, 0.5, 0.5) camera.checkCollisions = true; camera.applyGravity = true; camera.keysUp = [87]; // W camera.keysDown = [83]; // S camera.keysLeft = [65]; // A camera.keysRight = [68]; // D camera.speed = this.walkSpeed; camera.inertia = this.inertia; camera.angularInertia = this.angularInertia; camera.angularSensibility = this.angularSensibility; camera.layerMask = 2; return camera; } I'm not working with moveWithCollision because that's for meshes only, right ?
  10. What do you mean? can you give me an example ?
  11. I can't seem to get the playground script to work
  12. Anyone ? Pretty please ?
  13. Hello guys! Here I am with yet another question So I want to make it possible for players to jump on objects (meshes) that are somewhat lower than the players camera. I have set the checkCollisions to true but i can't seem to jump on any objects Here is my jump function //Object i wanna jump on var cube = BABYLON.Mesh.CreateBox("box", 10, scene); cube.checkCollisions = true; cube.position.y = - 4.5 ; //Jump function _playerJump : function(){ $this = this; if($this.isJumping == false && $ - 30 >= 0){ var camera = $, jumpAnim = new BABYLON.Animation("jumpAnim", "position.y", 20, BABYLON.Animation.ANIMATIONTYPE_FLOAT, BABYLON.Animation.ANIMATIONLOOPMODE_CYCLE), keys = [], jumpStep; camera.animations = []; for(jumpStep = 0; jumpStep < 23; jumpStep ++) keys.push({frame: jumpStep, value: camera.position.y + jumpStep / 5}); for(jumpStep = 24; jumpStep < 46; jumpStep ++) keys.push({frame: jumpStep, value: camera.position.y + 4.8 - (jumpStep - 24) / 5}); jumpAnim.setKeys(keys); var easingFunction = new BABYLON.BezierCurveEase(.13,.01,.63,1.41); easingFunction.setEasingMode(BABYLON.EasingFunction.EASINGMODE_EASEIN); jumpAnim.setEasingFunction(easingFunction); camera.animations.push(jumpAnim); $this.isJumping = true; $this._setEnergy(-30); $this.scene.beginAnimation(camera, 0, 46, false, 4, function(){ $this.isJumping = false; $this.isCrouching = false; }); } }
  14. Okay Anyways, do you know when will this be fixed ?