<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic MXS: MassFX / PhysX (Max2020) in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/mxs-massfx-physx-max2020/m-p/8981325#M7859</link>
    <description>&lt;P&gt;I have a simple RB box above the ground. In the MassFX simulation tools dialog, it does what I expect - the box falls down. Now I'd like to run the same simulation from MXS.&lt;/P&gt;&lt;PRE&gt;nvpx.SimulationReset()    -- returns 1
nvpx.GetSimulationState() -- returns 0&lt;BR /&gt;nvpx.simulate 1000000.0   -- returns 1&lt;BR /&gt;nvpx.GetSimulationState() -- returns 2&lt;/PRE&gt;&lt;P&gt;Here are my questions:&lt;/P&gt;&lt;P&gt;a)&amp;nbsp; shall 'simulate' work at all? no matter which how huge number I pass, the fn returns immediately with 1&lt;/P&gt;&lt;P&gt;b) what exaclty is the simulation time? is in seconds or is it the high accuray time directly from PhysX?&lt;/P&gt;&lt;P&gt;c) why is the box not falling down in the viewport?&lt;/P&gt;&lt;P&gt;d) if there's a "hidden" TM specifically for PhysX existing, how to gain access to?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok - I found something out. An init might be missing, as when I use "SingleStep" in the MassFX dialog and afterwards I do a "simulate", it works! The time parameter seem to be in seconds.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Aug 2019 13:43:29 GMT</pubDate>
    <dc:creator>istan</dc:creator>
    <dc:date>2019-08-22T13:43:29Z</dc:date>
    <item>
      <title>MXS: MassFX / PhysX (Max2020)</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/mxs-massfx-physx-max2020/m-p/8981325#M7859</link>
      <description>&lt;P&gt;I have a simple RB box above the ground. In the MassFX simulation tools dialog, it does what I expect - the box falls down. Now I'd like to run the same simulation from MXS.&lt;/P&gt;&lt;PRE&gt;nvpx.SimulationReset()    -- returns 1
nvpx.GetSimulationState() -- returns 0&lt;BR /&gt;nvpx.simulate 1000000.0   -- returns 1&lt;BR /&gt;nvpx.GetSimulationState() -- returns 2&lt;/PRE&gt;&lt;P&gt;Here are my questions:&lt;/P&gt;&lt;P&gt;a)&amp;nbsp; shall 'simulate' work at all? no matter which how huge number I pass, the fn returns immediately with 1&lt;/P&gt;&lt;P&gt;b) what exaclty is the simulation time? is in seconds or is it the high accuray time directly from PhysX?&lt;/P&gt;&lt;P&gt;c) why is the box not falling down in the viewport?&lt;/P&gt;&lt;P&gt;d) if there's a "hidden" TM specifically for PhysX existing, how to gain access to?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok - I found something out. An init might be missing, as when I use "SingleStep" in the MassFX dialog and afterwards I do a "simulate", it works! The time parameter seem to be in seconds.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 13:43:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/mxs-massfx-physx-max2020/m-p/8981325#M7859</guid>
      <dc:creator>istan</dc:creator>
      <dc:date>2019-08-22T13:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: MXS: MassFX / PhysX (Max2020)</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/mxs-massfx-physx-max2020/m-p/8981411#M7860</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/203084"&gt;@istan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;indeed, documentation will have to be corrected for this.&lt;/P&gt;
&lt;P&gt;To be able to run and stop the simulation:&lt;/P&gt;
&lt;P&gt;PxRunSimulation() -- start simulation&lt;BR /&gt;PxStopSimulation() -- stop simulation&lt;BR /&gt;nvpx.SimulationReset() -- reset simulation to start frame&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;set:&lt;/P&gt;
&lt;P&gt;nvpx.simulate 0&lt;/P&gt;
&lt;P&gt;for the default time step, this parameter does not start the simulation, it just sets the time steps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;More info:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/support/3ds-max/troubleshooting/caas/sfdcarticles/sfdcarticles/How-to-Run-and-Bake-an-animation-from-a-MassFx-simulation-using-Maxscript-in-3ds-Max.html" target="_blank"&gt;https://knowledge.autodesk.com/support/3ds-max/troubleshooting/caas/sfdcarticles/sfdcarticles/How-to-Run-and-Bake-an-animation-from-a-MassFx-simulation-using-Maxscript-in-3ds-Max.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry about that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 13:55:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/mxs-massfx-physx-max2020/m-p/8981411#M7860</guid>
      <dc:creator>ads_royje</dc:creator>
      <dc:date>2019-08-22T13:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: MXS: MassFX / PhysX (Max2020)</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/mxs-massfx-physx-max2020/m-p/8981436#M7861</link>
      <description>&lt;P&gt;hmm.. yes.. thank you..&lt;/P&gt;&lt;P&gt;But when the simulation was initialized once, 'nvpx.simulate 1' does the simulation steps..&lt;/P&gt;&lt;P&gt;Anyhow, I test how far I can go with the Px() function approch.&lt;/P&gt;&lt;P&gt;Not sure, if I can also move PhysX RBies around, while this simulation is running.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 14:04:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/mxs-massfx-physx-max2020/m-p/8981436#M7861</guid>
      <dc:creator>istan</dc:creator>
      <dc:date>2019-08-22T14:04:07Z</dc:date>
    </item>
  </channel>
</rss>

