<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Bogdan</title>
    <description>The latest articles on DEV Community by Bogdan (@bogdan24).</description>
    <link>https://dev.to/bogdan24</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1167864%2Fbd65d991-2454-434f-a8b1-978817ae627a.jpg</url>
      <title>DEV Community: Bogdan</title>
      <link>https://dev.to/bogdan24</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bogdan24"/>
    <language>en</language>
    <item>
      <title>Why Angular with BabylonJs project doesn't initialize Havok Physics?</title>
      <dc:creator>Bogdan</dc:creator>
      <pubDate>Fri, 22 Sep 2023 15:53:15 +0000</pubDate>
      <link>https://dev.to/bogdan24/why-angular-with-babylonjs-project-doesnt-initialize-havok-physics-4gdo</link>
      <guid>https://dev.to/bogdan24/why-angular-with-babylonjs-project-doesnt-initialize-havok-physics-4gdo</guid>
      <description>&lt;p&gt;Main problem is (#picture_3)&lt;br&gt;
Not allowed to load local resource: file:///C:/Users/Bogdan/Desktop/angular-babylonjs-havok/node_modules/@babylonjs/havok/lib/esm/HavokPhysics.wasm&lt;br&gt;
Why HavokPhysics.wasm is not allowed to load with angular? &lt;/p&gt;

&lt;p&gt;Is there any expert to help me find out what is a problem and what should I configure webpack.config.js or/and angular.json or/and tsconfig.json?&lt;br&gt;
Is a problem inside @babylonjs/havok package (&lt;a href="https://www.npmjs.com/package/@babylonjs/havok"&gt;https://www.npmjs.com/package/@babylonjs/havok&lt;/a&gt;)?&lt;br&gt;
Is a problem with angular configurations?&lt;br&gt;
What should we to to solve this problem any suggestion any help?&lt;/p&gt;

&lt;p&gt;(#picture_2)&lt;br&gt;
If we uncomment blue region (Ammo Physics) as shown on (#picture2) and comment green region (Havok Physics).&lt;br&gt;
Than we can see that Ammo physics is working ok with Angular_BabylonJS.&lt;/p&gt;

&lt;p&gt;Source code of example. Init Angular Project with BabylonJS and Havok Physics&lt;br&gt;
git URL: &lt;a href="https://gitlab.com/ian.sheehan.si/angular-babylonjs-havok.git"&gt;https://gitlab.com/ian.sheehan.si/angular-babylonjs-havok.git&lt;/a&gt;&lt;br&gt;
Can you clone it and try it. To see the problem (see #picture3 - Stack Error)&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--O68o6kYe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6qp7o6lvd5zw2lvqlzlo.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--O68o6kYe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6qp7o6lvd5zw2lvqlzlo.jpg" alt="Image description" width="800" height="438"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--DBRSzwBt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s9p46661e2wblv9r836f.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--DBRSzwBt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s9p46661e2wblv9r836f.jpg" alt="Image description" width="800" height="439"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--2LhtvnSq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kkox0ls6b1mj2juro0w7.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--2LhtvnSq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kkox0ls6b1mj2juro0w7.jpg" alt="Image description" width="800" height="610"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
