Hi, thank you for this! Would you know why I am getting a NullRef exception when trying to create a world? The code is running inside of WASM
System.NullReferenceException: Arg_NullReferenceException
at Box2D.NET.B2World.Clear()
at Box2D.NET.B2Worlds.b2CreateWorld(B2WorldDef& )
at StdbModule.Modules.World.WorldTick.CreateWorld()
private static B2WorldId CreateWorld()
{
var def = new B2WorldDef
{
enableSleep = true,
gravity = new B2Vec2(0, 0)
};
return B2Worlds.b2CreateWorld(ref def);
}
.NET version: 8.0.400
runtime: wasi-wasm