• Content Count

  • Joined

  • Last visited

Everything posted by angeltrickz

  1. help when firing with weapon.(fire) goes by apoco lowering the fps how can I avoid this?
  2. angeltrickz

    VR camera does not work

    var camera = new BABYLON.VRDeviceOrientationFreeCamera ("Camera", new BABYLON.Vector3 (-6.7, 1.2, -1.3), scene, 0); camera.attachControl(canvas, false); console.log(camera.inputs.attached) camera.inputs.attached.deviceOrientation.detachControl(canvas); var onOrientationEvent = function(evt) { this._alpha = (+evt.alpha | 0) + 45; this._beta = (+evt.beta | 0) + 45; this._gamma = +evt.gamma | 0; this._dirty = true; } camera.inputs.attached.deviceOrientation._deviceOrientationHandler = onOrientationEvent.bind(camera.inputs.attached.VRDeviceOrientation); camera.inputs.attached.deviceOrientation.attachControl(canvas); scene.activeCamera = camera; A few years ago I was working with a webvr project and this code worked for me with a cell phone but now it does not work and I searched for more vr methods in babylon, but none works as before the movement of the phone ..
  3. angeltrickz

    VR camera does not work

    thanks but I already solved the problem: P
  4. angeltrickz

    VRDeviceOrientationFreeCamera not work!!

    thanks but I already solved the problem: P
  5. VRDeviceOrientationFreeCamera help does not work .. I try to use it on my cell phone but it does not move ...
  6. help in my game I eliminate an enemy with enemy.kill () and deasa appears but the associated weapon keeps firing .. and enemy.destroy () gives me an error ..
  7. How to rotate body with Arcade physics? when trying to just rotate the sprite not the body
  8. angeltrickz

    multiplayer collision

    for (var i in Game.playerMap) { for (var e in Game.weaponMap) { game.physics.arcade.collide(Game.playerMap[i], Game.weaponMap[e].bullets,Game.colision(i), null, this); } }; Game.colision = function(id){ //console.log(id); //Client.socket.emit('colision',"colision"); }; I want to make collisions and send them via socket to the server ... but for now I have a problem because it constantly sends me collisions without detecting between the shot and the enemy .. any ideas?
  9. angeltrickz

    help problem hitarea

    how can I define the hit area of a single bullet and a sprite
  10. hello I am trying to move a sprite with Accelerate To Pointer and send with socekt to the other players. but I do not find ... any support? game.update = function(){ player.rotation = game.physics.arcade.moveToPointer(player, 60, game.input.activePointer, 500); Client.socket.emit('rotandpos',{x:player.x,y:player.y,r:player.rotation}); };
  11. like follow cam with speed control but an object
  12. thank you pro the answer .. but I mean an object follow another or to the camera ... as this example in unity :
  13. angeltrickz

    enemy follow ?? this in babylonjs ?? ???
  14. angeltrickz

    help!!!! skeleton blender to babylon

    ready .. thanks
  15. in blender ..... in babylon ... helpme plz
  16. angeltrickz

    help!!!! skeleton blender to babylon

    mm other questions as I leave the character walking in place ..that this not move axes ..
  17. angeltrickz

    help!!!! skeleton blender to babylon

    thanks ... erase some bones of the fingers and worked well :)
  18. angeltrickz

    help!!!! skeleton blender to babylon

    thanks for the help the problem is that I'm using the default eskeleto blender and animations are downloaded ... now I'm looking at other options such as importing eskeleto of Makehuman ... which can not even be the best way to create animations babylon perhaps from another program that handles bvh ? I do not want is to have to animate frame by frame skeletons = _ =
  19. angeltrickz

    help!!!! skeleton blender to babylon

    4.5.0 ._.
  20. angeltrickz

    help!!!! skeleton blender to babylon
  21. angeltrickz

    VideoTexture stop ?

    hello this time wanted to ask 2 things first: VideoTexture as play just one look.? and also how you can access multitextures imported from blender.
  22. angeltrickz

    actionManager subMeshes ?

    Hi wanted to know if is possible to give shares to a submesh and if anyone can help me how to do it from blender greetings .. BABYLON.SceneLoader.ImportMesh("", "objetos/", "pelota.babylon", scene, function (newMeshes) { var pelota = newMeshes[0]; var submeshpelota = pelota.subMeshes[0]; submeshpelota.actionManager = new BABYLON.ActionManager(scene); submeshpelotaactionManager.registerAction(new BABYLON.ExecuteCodeAction(BABYLON.ActionManager.OnPickTrigger, function(){ alert("hola mundo "); })).then(new BABYLON.ExecuteCodeAction(BABYLON.ActionManager.OnPickTrigger, function(){ alert("chao mundo "); }));
  23. angeltrickz

    rigging rigify blender export babylon

    thank you all for the answers at the end I decided to use bones MakeHuman and works well but it would be great that at some point could be used plugin rigify greetings