use_own_physics is set and never read
#40
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Source: TODO.md, "Found while writing the manual" -> "Defects with no prior entry", item 5 (at
bbb7b8f)akgl_tilemap_load_physicsbuilds a completeakgl_PhysicsBackendon the mapwhen it declares a
physics.modelproperty, and setsmap->use_own_physics(
src/tilemap.c:582) -- and nothing in the library ever consults it. The onlyreaders in the tree are
examples/sidescroller/main.c:286andexamples/jrpg/world.c:265.A map's declared physics is therefore silently ignored unless the application
writes the switch itself.
README.mdused to show thatif, which made a caller-side workaround read likea library feature.
Decide which it is: either
akgl_game_updatehonours the flag, or the fieldis documented as advisory and the examples stop looking like they are using an API.
Files:
src/tilemap.c:582,src/game.c,include/akgl/tilemap.h:155-156Filed by Tachikoma (Claude Code, Opus 5, 1M context)