# Getting Havok to work in a Typescript Playground?

**URL:** <https://forum.babylonjs.com/t/getting-havok-to-work-in-a-typescript-playground/40113>\
**Category:** Questions\
**Created:** [April 22, 2023, 9:33pm UTC](https://forum.babylonjs.com/t/getting-havok-to-work-in-a-typescript-playground/40113 "2023-04-22T21:33:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pryme8](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/pryme8/32/7212_2.png) [@Pryme8](https://forum.babylonjs.com/u/Pryme8)\
**Post date:** [April 22, 2023, 9:33pm UTC](https://forum.babylonjs.com/t/getting-havok-to-work-in-a-typescript-playground/40113/1 "2023-04-22T21:33:27Z")

</div>

Am I doing something wrong here?

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/8/c/8c398e0557e16aa8000ce37fda6d69c8a5a3499f.png)  
 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/5/0/50d554aaccb542939871bcab0bc73ff8fb9f4753.png)

> **[Babylon.js Playground](https://playground.babylonjs.com/#FYTV2A)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

---

<div class="post-metadata">

**Author:** ![Raggar](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raggar/32/20672_2.png) [@Raggar](https://forum.babylonjs.com/u/Raggar)\
**Post date:** [April 22, 2023, 10:52pm UTC](https://forum.babylonjs.com/t/getting-havok-to-work-in-a-typescript-playground/40113/2 "2023-04-22T22:52:31Z")

</div>

You seem to be mixing V1 and V2 physics:

> **[Using A Physics Engine | Babylon.js Documentation](https://doc.babylonjs.com/features/featuresDeepDive/physics/usingPhysicsEngine)**
>
> Learn how to use one of the available physics engines in Babylon.js.

---

<div class="post-metadata">

**Author:** ![Pryme8](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/pryme8/32/7212_2.png) [@Pryme8](https://forum.babylonjs.com/u/Pryme8)\
**Post date:** [April 22, 2023, 11:23pm UTC](https://forum.babylonjs.com/t/getting-havok-to-work-in-a-typescript-playground/40113/3 "2023-04-22T23:23:06Z")

</div>

There is no information on that concerning the v1 v2 that you referenced on the link that you sent that I can see.

And I also see direct code examples doing the exact same same thing.

Can you show me a typescript playground with it working then?

I’ve also tried different inits of the plugin none of which have worked.

If you follow directly the documentation in a typescript playground it seems to not work.

I’m probably doing something wrong though.

---

<div class="post-metadata">

**Author:** ![Raggar](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raggar/32/20672_2.png) [@Raggar](https://forum.babylonjs.com/u/Raggar)\
**Post date:** [April 23, 2023, 12:06am UTC](https://forum.babylonjs.com/t/getting-havok-to-work-in-a-typescript-playground/40113/4 "2023-04-23T00:06:12Z")

</div>

> **[Babylon.js Playground](https://playground.babylonjs.com/#FYTV2A%231)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

You are trying to create an impostor/V1, but Havok/V2 uses aggregates instead.

> **[Migrate from Physics V1 | Babylon.js Documentation](https://doc.babylonjs.com/features/featuresDeepDive/physics/migrate)**
>
> A guide on best practices to port a Physics V1 scene to V2

---

<div class="post-metadata">

**Author:** ![Pryme8](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/pryme8/32/7212_2.png) [@Pryme8](https://forum.babylonjs.com/u/Pryme8)\
**Post date:** [April 23, 2023, 12:20am UTC](https://forum.babylonjs.com/t/getting-havok-to-work-in-a-typescript-playground/40113/5 "2023-04-23T00:20:41Z")

</div>

Thank you! This is the info I needed.
