I’m looking around for some collision detection library or even better, a point to point with object detection. Because I’m deferring the next-position logic to the backend (nodejs websocket server), defold just needs to go.set_position(backend_position)
on update.
Currently, the scenario is to move a player on a “640x1136” map, with random/multiple box/circle solid objects placed on the map. And the player has to move to the touched position, moving around the solid objects. Right now I only have
const backend_position = Victor.fromObject({ x: deltaX, y: deltaY }).normalize().toObject()
which works well without any physics logic involved. Was thinking of using:
But I’m wondering if there’re other libraries better suited for this scenario.