{"id":184,"date":"2007-02-05T18:10:41","date_gmt":"2007-02-05T22:10:41","guid":{"rendered":"http:\/\/www.rakkar.org\/blog\/?p=184"},"modified":"2007-02-05T18:10:41","modified_gmt":"2007-02-05T22:10:41","slug":"physx-tip","status":"publish","type":"post","link":"https:\/\/rakkar.org\/blog\/index.php\/2007\/02\/05\/physx-tip\/","title":{"rendered":"PhysX Tip"},"content":{"rendered":"<p>\t\t\t\tI lost an hour because of inadequate documentation regarding how to update the simulation in PhysX.  Here is a tip:<\/p>\n<p>If your objects just won&#8217;t move, it&#8217;s probably because you are only calling physicsScene->simulate.  For reasons which are not explained, you have to call:<\/p>\n<p><code><br \/>\nphysicsScene->fetchResults<br \/>\n<\/code><\/p>\n<p>then update your inputs<\/p>\n<p>then call <\/p>\n<p><code><br \/>\nphysicsScene->simulate((float)(elapsedTimeMS)*0.001f);<br \/>\nphysicsScene->flushStream();<br \/>\n<\/code>\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I lost an hour because of inadequate documentation regarding how to update the simulation in PhysX. Here is a tip: If your objects just won&#8217;t move, it&#8217;s probably because you are only calling physicsScene->simulate. For reasons which are not explained, you have to call: physicsScene->fetchResults then update your inputs then call physicsScene->simulate((float)(elapsedTimeMS)*0.001f); physicsScene->flushStream();<\/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":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/posts\/184"}],"collection":[{"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=184"}],"version-history":[{"count":0,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/posts\/184\/revisions"}],"wp:attachment":[{"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}