Alenvei

Members
  • Content count

    16
  • Joined

  • Last visited

About Alenvei

  • Rank
    Member

Contact Methods

  • Twitter
    dayest

Recent Profile Visitors

181 profile views
  1. Turn off PARENT CHILD rotation

    Sorry @Arte I badly expressed.Yes it is not parenting . My solution work for me like the parenting and is simplest. But I am only autodidact Who likes to learn new things. here is my example how it works with WASD movement, with my solution of FAKE parenting : https://playground.babylonjs.com/#CFMBHZ#8 sorry for my bad English.
  2. Turn off PARENT CHILD rotation

    This is my solution for "how turn off parent rotation" here : https://playground.babylonjs.com/#CFMBHZ#1 You can try it guys . Have fun
  3. Turn off PARENT CHILD rotation

    never mind i solved this
  4. Hello It is possible turn off parent rotation ? var box = BABYLON.MeshBuilder.CreateBox("box1", 1, scene); var sphere = BABYLON.MeshBuilder.CreateSphere("sphere1", 1, scene); box.parent = sphere;
  5. Thank you very much @Pryme8 , @brianzinn, @Spankied and @Senglean. I learned lot of from you
  6. can you please show me @Pryme8 some example for my better understanding?
  7. Oh ok. Thank you very much @brianzinn It is very helpful for my project
  8. Thank you very much guys @Senglean similar methode I use too but this look better. @brianzinn and if I use get mesh() function will be work if i apply on mesh intersectsMesh() ? .
  9. Hello every body I have question about using variables and "this". I am autodidact and I really like code and last 2 week I am trying make "simple" game but I am stuck. Here is my question : If I create js file and make there function: function Box(scene){ this.scene = scene; this.box = BABYLON.Mesh.CreateBox("box", 0.32, this.scene); this.boxMat = new BABYLON.StandardMaterial("mat",this.scene); this.boxMat.diffuseColor = new BABYLON.Color3(10,1,1); this.box.material = this.boxMat; }; And I have other js file whit other function which contains mesh like a sphere for example and now I want to use "this.box.position.x " in function where is the sphere. Is it possible ? I tried like function call() but it didn´t worked. I treid search in google some exampels and without success. Sorry for my bad English. Have a nice evening .
  10. I apologise for disturb . I have one qoustion  about material textur, http://doc.babylonjs.com/how_to/createbox_per_face_textures_and_colors, Its only way how  make  box - texture  on one side  of  box whith none sprite  ? 

    thank you in advance  for your answer 

  11. Oh I got it thank you 😀 I am feel littel dump know that I didnt find out 😀 Again thank you very much @Deltakosh.
  12. Hello guys . I have some issue whit image load texture. var panel = BABYLON.Mesh.CreateBox("panel", 0.2, scene); var panelMat = new BABYLON.StandardMaterial("panel1",scene); panelMat.diffuseTexture = new BABYLON.Texture("tpanel.png", scene); panel.material = panelMat; panel.scaling.z = 0.1; In developer tools always show me this : index.html:1 : Access to Image at 'file:///C:/Users/user/Desktop/trapbox/tvorbamodelov/tpanel.png' from origin 'null' has been blocked by CORS policy: Invalid response. Origin 'null' is therefore not allowed access. babylon.js:3 : BJS - [00:16:44]: Error while trying to load image: tpanel.png. I am new in this and I am trying to understand how BABYLON.JS works. Thank you in advance for your answers .
  13. Sorry for my inactivity, I had to do same staff in my college. I looked to your link and It is so cool but in my exampel it worke really wierdly . I don´t konw why ... in my exampel collision chceks sooner and in some position chceks later. Gravity is relly sensitive when a var gravity = 1 ; - shoot redBox to the univers if var gravity = 0.9 ; - redBox will vanish under gound. Exampel : http://www.babylonjs-playground.com/#3F5YVW#4
  14. Thank you very much @Raggar Now I understand why it didn't work . And regarding collisions I wanted try moveWithCollisions : https://doc.babylonjs.com/tutorials/cameras,_mesh_collisions_and_gravity but now I must find out what will be better.