RonYanDaik

Results 34 comments of RonYanDaik

Maybe Struct _Point_ could be moved to public field and then exposed?

The goal is to convert and use all classes/code, except rendering, to c++ and create then rendering/controling wrappers. So I've followed these steps for now (if anyone wants to follow):...

Ok. Then i need to convert to c++ first. @Zireael07 if you've converted to JS may be you've seen these errors? ``` Source/com/watabou/geom/Polygon.hx:25: characters 12-16 : Unknown identifier : last...

Yep. looks like it: https://github.com/watabou/TownGeneratorOS/pull/12/files now only these 2 have left ``` Source/com/watabou/towngenerator/wards/Ward.hx:96: characters 81-99 : Float should be Int Source/com/watabou/towngenerator/wards/Ward.hx:96: characters 81-99 : For function argument 'x' ``` And...

` Source/com/watabou/towngenerator/Main.hx:11: lines 11-33 : Invalid -main : com.watabou.towngenerator.Main does not have static function main `

I did some more testing and found out that the crash happens depending from number of static bodies (or fixtures) in the scene. Crash happens: ![image](https://user-images.githubusercontent.com/3350340/230493940-983eb94a-e9e9-4aa8-ae40-f9a7dc141eba.png) crash does not happen:...

Apparently problem is here: ![image](https://user-images.githubusercontent.com/3350340/230496731-6feeca32-9d68-482c-b531-d323a8d2569a.png) **m_rootStatic** members ore not valid (not null but also not a value). Thats why **(root->IsLeaf())** gives false May be it got somewhere deleted and not...

I've got new exception. this time it tries to access right member which is invalid. ![image](https://user-images.githubusercontent.com/3350340/230581661-43b0ad1b-e1dd-4ddb-afa9-bdbc8b26db30.png)

> Do you have code that can help me reproduce that? I can have a look. I think I've managed to reproduce it in Tiles test. this is the code...

Maybe I'm onto something here? Looks like `oldNodes` points to `m_rootStatic` and here its being freed with` b2Free(oldNodes)`. And from here on `m_rootStatic` has invalid values. ![image](https://user-images.githubusercontent.com/3350340/230616059-7f634983-8a89-4ebf-a3f7-499a9da78dfd.png)