A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
fix: use literal 0xFFFFFFFF instead of INVALID_ENTITY in physics module
esengine53250e8bb40a
diff --git a/src/esengine/bindings/PhysicsModuleEntry.cpp b/src/esengine/bindings/PhysicsModuleEntry.cppindex 28628eab4..416807c7c 100644--- a/src/esengine/bindings/PhysicsModuleEntry.cpp+++ b/src/esengine/bindings/PhysicsModuleEntry.cpp@@ -119,7 +119,7 @@ void physics_createBody(uint32_t entityId, int bodyType, float x, float y, floatfloat gravityScale, float linearDamping, float angularDamping,int fixedRotation, int bullet) {if (!b2World_IsValid(g_worldId)) return;- if (entityId == static_cast<uint32_t>(INVALID_ENTITY)) return;+ if (entityId == 0xFFFFFFFF) return;if (g_entityToBody.contains(entityId)) return;b2BodyDef bodyDef = b2DefaultBodyDef();