{"action":"created","issue":{"url":"https://api.github.com/repos/shadowmage45/KSPWheel/issues/13","repository_url":"https://api.github.com/repos/shadowmage45/KSPWheel","labels_url":"https://api.github.com/repos/shadowmage45/KSPWheel/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/shadowmage45/KSPWheel/issues/13/comments","events_url":"https://api.github.com/repos/shadowmage45/KSPWheel/issues/13/events","html_url":"https://github.com/shadowmage45/KSPWheel/issues/13","id":203778996,"number":13,"title":"Drag Cube Updates -- deployment state and scaling","user":{"login":"shadowmage45","id":1503399,"avatar_url":"https://avatars.githubusercontent.com/u/1503399?v=3","gravatar_id":"","url":"https://api.github.com/users/shadowmage45","html_url":"https://github.com/shadowmage45","followers_url":"https://api.github.com/users/shadowmage45/followers","following_url":"https://api.github.com/users/shadowmage45/following{/other_user}","gists_url":"https://api.github.com/users/shadowmage45/gists{/gist_id}","starred_url":"https://api.github.com/users/shadowmage45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shadowmage45/subscriptions","organizations_url":"https://api.github.com/users/shadowmage45/orgs","repos_url":"https://api.github.com/users/shadowmage45/repos","events_url":"https://api.github.com/users/shadowmage45/events{/privacy}","received_events_url":"https://api.github.com/users/shadowmage45/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-28T01:38:54Z","updated_at":"2017-01-28T17:43:25Z","closed_at":null,"body":"Unsure how best to handle updating drag cubes for parts due to conflicting requirements and setup between parts.\r\n\r\nWould like to keep whatever solution is found to be something simple and robust to decrease the chances of incompatibilities with other parts/mods/stock code.\r\n\r\nConflicting requirements:\r\n* Deployment module(s) require multiple drag-states, and are updated using IMultipleDragCube interface.  This is managed by stock code and can only be run once, during part initialization.\r\n* Scaling in base module requires a single drag cube state which is updated procedurally with DragCubeSystem.renderDragCube / etc.  This can be managed by custom code and can be re-run or updated whenever drag cubes change (with caveats on initialization stuff, see SSTU notes on when drag-cubes can safely be updated).\r\n\r\nThings to investigate:\r\n* Can the drag-cube system be forced to properly update the multiple drag-cube states for a specific part without overriding the persistent data in PhysicsDatabase.cfg?\r\n* Can the 'ModuleDragScale' (or w/e it is called) be manipulated at run-time to update the drag-cube scaling directly?  (are the values polled directly from the module, or are they used in calculations and cached somewhere?)\r\n\r\n\r\nAlso:\r\n* Whenever drag cubes are updated, should inform FAR to revoxelize.  Keep in mind the ordering and initialization that FAR needs, only call the revoxelization method when it is safe to, do not call it prematurely."},"comment":{"url":"https://api.github.com/repos/shadowmage45/KSPWheel/issues/comments/275862496","html_url":"https://github.com/shadowmage45/KSPWheel/issues/13#issuecomment-275862496","issue_url":"https://api.github.com/repos/shadowmage45/KSPWheel/issues/13","id":275862496,"user":{"login":"shadowmage45","id":1503399,"avatar_url":"https://avatars.githubusercontent.com/u/1503399?v=3","gravatar_id":"","url":"https://api.github.com/users/shadowmage45","html_url":"https://github.com/shadowmage45","followers_url":"https://api.github.com/users/shadowmage45/followers","following_url":"https://api.github.com/users/shadowmage45/following{/other_user}","gists_url":"https://api.github.com/users/shadowmage45/gists{/gist_id}","starred_url":"https://api.github.com/users/shadowmage45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shadowmage45/subscriptions","organizations_url":"https://api.github.com/users/shadowmage45/orgs","repos_url":"https://api.github.com/users/shadowmage45/repos","events_url":"https://api.github.com/users/shadowmage45/events{/privacy}","received_events_url":"https://api.github.com/users/shadowmage45/received_events","type":"User","site_admin":false},"created_at":"2017-01-28T17:43:25Z","updated_at":"2017-01-28T17:43:25Z","body":"Am now manually scaling drag-cubes when part scale changes.  Needs testing, but should be fixed for the next release."}}
{"actor":{"display_login":"shadowmage45"}}