adam Posted October 30, 2015 Share Posted October 30, 2015 I'm trying to get a cube to move forward along its local z axis in this simple PG: http://www.babylonjs-playground.com/#16DTHP but it doesn't seem like the WorldMatrix is affected by changes to rotation. What am I doing wrong? Quote Link to comment Share on other sites More sharing options...
adam Posted October 30, 2015 Author Share Posted October 30, 2015 I was looking at the wrong elements of the matrix array. http://www.babylonjs-playground.com/#16DTHP#1 Edit: This appears to be the y axis. Quote Link to comment Share on other sites More sharing options...
adam Posted October 30, 2015 Author Share Posted October 30, 2015 Are these elements of the matrix array the forward z-axis of a mesh? -m[8], -m[9], -m[10] using those is the only way I could get this example to run: http://www.babylonjs-playground.com/#ZWONO#4 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.