Dad72 Posted February 10, 2015 Share Posted February 10, 2015 When I attach (with parent) sphere => character export 3ds max. I am forced to raise the sphere of using the Z axis in place of the Y axis Here at the code level: (see comments) meshPlayerCollider = BABYLON.Mesh.CreateSphere("Intersector", 10, 20, scene);meshPlayerCollider.parent = newMeshes[0]; // the sphere is attached to the character newMeshes [0] from 3ds maxmeshPlayerCollider.position = new BABYLON.Vector3(0, 0, 20); // The object mounted on the axis Y of Babylon by adjusting the Z axismeshPlayerCollider.scaling = new BABYLON.Vector3(1, 1, 3); // scaling Y bug adjusting the Z axisNormally I should do: (see comments) meshPlayerCollider.position = new BABYLON.Vector3(0, 20, 0);// There I this moves forward (Z)meshPlayerCollider.scaling = new BABYLON.Vector3(1, 3, 1); // There I this scaling forward (Z)Pour faire cours en ffrancais: Les axes semble utiliser ceux de 3ds max dans Babylon quand on déplace, scall, ou oriente un objet de babylon parenté a un objet exporter de 3ds max. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 11, 2015 Share Posted February 11, 2015 Only with bones? DO you have a sample 3dsmax scene with the issue? Quote Link to comment Share on other sites More sharing options...
Dad72 Posted February 11, 2015 Author Share Posted February 11, 2015 Yes: I made it simple like on the playground. http://www.castorengine.com/babylon/test/index.html Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 11, 2015 Share Posted February 11, 2015 And what about the 3dsmax file? Quote Link to comment Share on other sites More sharing options...
Dad72 Posted February 11, 2015 Author Share Posted February 11, 2015 You want the file 3ds max and babylon ? I send by PM. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 14, 2015 Share Posted February 14, 2015 This is because newMeshes[0] has a rotation so the world of its children is no more align with axis Quote Link to comment Share on other sites More sharing options...
Dad72 Posted February 14, 2015 Author Share Posted February 14, 2015 ah, ok. so no bug. sorry for the inconvenience. Have a nice evening Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.