ZeroAT

Members
  • Content count

    1
  • Joined

  • Last visited

  1. Is there any way to print the current rotation angle? I am currently using the code below, but I only want it to rotate 180 degrees instead of 360 degrees. I think I need to compare values with MATH.PI, but I am not sure what the other value would be because I have no idea how to figure out the current angle of rotation. As shown in the image below, I need to be able to retrieve x,y,and z to compare values. Any ideas on how to get these values? BABYLON.SceneLoader.ImportMesh("",'', "ship.babylon", scene, function(newMeshes){ ship = newMeshes; ... ... .. ship[0].rotate(BABYLON.Axis.Y, Math.PI / 2, BABYLON.Space.WORLD);