{"id":465,"date":"2020-01-23T10:48:08","date_gmt":"2020-01-23T18:48:08","guid":{"rendered":"http:\/\/fx-td.com\/houdiniandchill\/?p=465"},"modified":"2020-01-23T10:48:10","modified_gmt":"2020-01-23T18:48:10","slug":"archived-post-by-whileromeburns-3","status":"publish","type":"post","link":"http:\/\/fx-td.com\/houdiniandchill\/2020\/01\/23\/archived-post-by-whileromeburns-3\/","title":{"rendered":"Archived post by WhileRomeBurns"},"content":{"rendered":"<p class=\"\">if you want to use `targetv`, `airresist`, `drag` you could do the math yourself and store them in custom attributes like <a href=\"mailto:`@c_targetv`\" >`@c_targetv`<\/a> so bullet doesn&#8217;t pick um up and make nans<\/p>\n<p class=\"\">it&#8217;ll be something like this:<\/p>\n<p class=\"\">&#8220;`float imass = 1.0 \/ @mass;<br \/>\n@c_airresist = @c_airresist * @c_drag; if (@c_airresist > 0) {<br \/>\n\u00a0\u00a0\u00a0 \/\/ the relative ang vel \u00a0\u00a0\u00a0 <a href=\"mailto:v@v\" >v@v<\/a> -= <a href=\"mailto:v@c_targetv\" >v@c_targetv<\/a>;<br \/>\n\u00a0\u00a0\u00a0 \/\/ quadratic drag \u00a0\u00a0\u00a0 <a href=\"mailto:v@v\" >v@v<\/a> *= 1.0 \/ ( (@c_airresist * imass * @TimeInc * length(<a href=\"mailto:v@v\" >v@v<\/a>)) + 1.0 );<br \/>\n\u00a0\u00a0\u00a0 \/\/ restore frame \u00a0\u00a0\u00a0 <a href=\"mailto:v@v\" >v@v<\/a> += <a href=\"mailto:v@c_targetv\" >v@c_targetv<\/a>; }&#8220;`<\/p>\n<p class=\"\">i don&#8217;t see how that could produce a nan unless c_airresist was negative or mass was zero<\/p>\n<p class=\"\">which you can add checks for if you like<\/p>\n<p class=\"\">just skip zero-mass dudes<\/p>\n","protected":false},"excerpt":{"rendered":"<p>if you want to use `targetv`, `airresist`, `drag` you could do the math yourself and store them in custom attributes like `@c_targetv` so bullet doesn&#8217;t pick um up and make nans it&#8217;ll be something like this: &#8220;`float imass = 1.0 \/ @mass; @c_airresist = @c_airresist * @c_drag; if (@c_airresist > 0) { \u00a0\u00a0\u00a0 \/\/ the &hellip; <a href=\"http:\/\/fx-td.com\/houdiniandchill\/2020\/01\/23\/archived-post-by-whileromeburns-3\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Archived post by WhileRomeBurns<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts\/465"}],"collection":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/comments?post=465"}],"version-history":[{"count":0,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/posts\/465\/revisions"}],"wp:attachment":[{"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/media?parent=465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/categories?post=465"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/fx-td.com\/houdiniandchill\/wp-json\/wp\/v2\/tags?post=465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}