Ivan

Results 127 comments of Ivan

For those who came to this thread to enable Ammo as an ES module. Here is the solution: https://discourse.threejs.org/t/how-to-convert-ammo-js-to-es6-module/30633/4 But later I had this problem: [Three.js and Ammo-ES. Error: ammo-es.js:37...

This is a TypeScript version. I tried to keep names as a body property but it does not work too. It prints "undefined" instead of names: ``` (this.body as any).name...

Solution: ``` const userData = { name: name }; (this.body as any).userData = userData; ``` ``` function detectCollison(): void { const dispatcher = physicsWorld.getDispatcher(); const numManifolds = dispatcher.getNumManifolds(); for (let...

Asus K53SV; 8 GB RAM, i3 2.2 GHertz (2 cores); Intel HD Graphics 3000; Nvidia Geforce GT 540M (1 GB); Windows 10 - box2d.ts : 27 FPS ![image](https://user-images.githubusercontent.com/3908473/143288186-5398177b-c3d9-4a9b-8986-6d0327281c3b.png) - planck.js...

I have the same error. I use Parcel instead of Webpack. Is it possible to use Testbed with Parcel? I made a simple example in TypeScript on Sandbox: https://codesandbox.io/s/planckjs-testbed-ts-n4imh4?file=/src/index.ts ```typescript...

Asus K53SV; 8 GB RAM, i3 2.2 GHertz (2 cores); Intel HD Graphics 3000; Nvidia Geforce GT 540M (1 GB); Windows 10 - box2d.ts : 27 FPS ![image](https://user-images.githubusercontent.com/3908473/143288186-5398177b-c3d9-4a9b-8986-6d0327281c3b.png) - planck.js...

@WMOkiishi thank you very much for your solution! Could you make your package compatible with Pyhton 3.8.10? I cannot use another version because [pybox2d](https://github.com/pybox2d/pybox2d) works with 3.8 only: ```Recent builds...

I downloaded the folder: ![image](https://user-images.githubusercontent.com/3908473/183420660-d30cef22-5004-470a-bbac-bea65dc056e3.png) I set the path and reloaded VSCode: ![image](https://user-images.githubusercontent.com/3908473/183420813-eb58fbf6-9a94-44b9-a01c-fd5ba87f9768.png) ```json "python.analysis.extraPaths": [ "E:\\Libs\\panda3d-stubs-0.0.2" ] ``` But it does not work: ![image](https://user-images.githubusercontent.com/3908473/183420947-db62f12f-ce9e-4c3b-b6f3-6035eb3f6ba1.png)

I have a lot of folders in "Libs" that is why I created a new folder for stubs: ![image](https://user-images.githubusercontent.com/3908473/183431100-34654385-53f7-4042-a6e6-9025469f616a.png) ![image](https://user-images.githubusercontent.com/3908473/183431297-ee449ff2-b90e-45fe-bf13-99a8923a16d3.png) ```json "python.analysis.extraPaths": [ "E:\\Libs\\panda3d" ] ``` It works now! Thank...

Asus K53SV; 8 GB RAM, i3 2.2 GHertz (2 cores); Intel HD Graphics 3000; Nvidia Geforce GT 540M (1 GB); Windows 10 - box2d.ts : 27 FPS ![image](https://user-images.githubusercontent.com/3908473/143288186-5398177b-c3d9-4a9b-8986-6d0327281c3b.png) - planck.js...