{"id":3392,"date":"2016-08-07T23:58:14","date_gmt":"2016-08-07T22:58:14","guid":{"rendered":"http:\/\/phoenixgamedevelopment.com\/blog\/?p=3392"},"modified":"2016-08-13T23:27:20","modified_gmt":"2016-08-13T22:27:20","slug":"p-152-virtual-world-concept-update-150-planet-sized-terrain-part-29","status":"publish","type":"post","link":"https:\/\/phoenixgamedevelopment.com\/blog\/p-152-virtual-world-concept-update-150-planet-sized-terrain-part-29\/","title":{"rendered":"P-152: Virtual World Concept Update 150: Planet-sized Terrain: Part 29"},"content":{"rendered":"<p>The camera issues have been fixed, it appears that I left some code in the processtick() function from a previous attempt to solve the orientation issue, and that was causing problems. I now only have the movement and control issue to solve.<\/p>\n<p>I have tried various means of rotating the players movement vector so that it faces in the new direction, but this doesn&#8217;t seem to be a viable solution. I have now tracked the origin of the actual &#8220;Move&#8221; itself to MoveList::getNextMove().<\/p>\n<p>This is the function which takes the input from the user and actually turns it into a move. The relevant lines of code are:<\/p>\n<blockquote><p>curMove.x = MoveManager::mRightAction &#8211; MoveManager::mLeftAction + MoveManager::mXAxis_L;<br \/>\ncurMove.y = MoveManager::mForwardAction &#8211; MoveManager::mBackwardAction + MoveManager::mYAxis_L;<br \/>\ncurMove.z = MoveManager::mUpAction &#8211; MoveManager::mDownAction;<\/p><\/blockquote>\n<p>This means that the move is hardcoded along the X,Y and Z axes. I basically need to change these axes based on the current orientation of the player. I am not sure how to do this yet.<\/p>\n<figure id=\"attachment_3394\" aria-describedby=\"caption-attachment-3394\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-06_08_2016-11_26_44-PM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-3394\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-06_08_2016-11_26_44-PM-300x192.jpg\" alt=\"P152_DEBUG 06\/08\/2016 , 11:26:44 PM Torque 3D MIT - P152\" width=\"300\" height=\"192\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-06_08_2016-11_26_44-PM-300x192.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-06_08_2016-11_26_44-PM-768x492.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-06_08_2016-11_26_44-PM-1024x656.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-06_08_2016-11_26_44-PM.jpg 1922w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-3394\" class=\"wp-caption-text\">P152_DEBUG<br \/>06\/08\/2016 , 11:26:44 PM<br \/>Torque 3D MIT &#8211; P152<\/figcaption><\/figure>\n<figure id=\"attachment_3393\" aria-describedby=\"caption-attachment-3393\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-06_08_2016-07_39_39-PM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-3393\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-06_08_2016-07_39_39-PM-300x192.jpg\" alt=\"P152_DEBUG 06\/08\/2016 , 07:39:39 PM Torque 3D MIT - P152\" width=\"300\" height=\"192\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-06_08_2016-07_39_39-PM-300x192.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-06_08_2016-07_39_39-PM-768x492.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-06_08_2016-07_39_39-PM-1024x656.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/08\/PhoenixGameDevelopment-06_08_2016-07_39_39-PM.jpg 1922w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-3393\" class=\"wp-caption-text\">P152_DEBUG<br \/>06\/08\/2016 , 07:39:39 PM<br \/>Torque 3D MIT &#8211; P152<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>The camera issues have been fixed, it appears that I left some code in the processtick() function from a previous attempt to solve the orientation issue, and that was causing problems. I now only have the movement and control issue to solve. I have tried various means of rotating the players movement vector so that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,17,10,11],"tags":[],"class_list":["post-3392","post","type-post","status-publish","format-standard","hentry","category-astral-realms","category-p-0","category-software-and-games","category-spiritus-astrum","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"aioseo_notices":[],"builder_content":"","_links":{"self":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/3392"}],"collection":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/comments?post=3392"}],"version-history":[{"count":6,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/3392\/revisions"}],"predecessor-version":[{"id":3409,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/3392\/revisions\/3409"}],"wp:attachment":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/media?parent=3392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/categories?post=3392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/tags?post=3392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}