Since entities are Node2D now they can't collide with walls but then I found this 'Manhattan Length' formula which limits any Vector length in a diamond shape so I can limit their movement to this room shape (multiply the Y vector length by 2 on the formula for the isometric look) NO COLLISIONS!
Since entities are Node2D now they can't collide with walls but then I found this 'Manhattan Length' formula which limits any Vector length in a diamond shape so I can limit their movement to this room shape (multiply the Y vector length by 2 on the formula for the isometric look) NO COLLISIONS!
0 vue
Publié le 08/11/2026 21:57
0:36
Since entities are Node2D now they can't collide with walls but then I found this 'Manhattan Length' formula which limits any Vector length in a diamond shape so I can limit their movement to this room shape (multiply the Y vector length by 2 on the formula for the isometric look) NO COLLISIONS!
2 commentaires
?
Impressive, also love the art style
Thanks!
the way it works is like each character has some sort of leash with a max length tied to the world origin (center of the room) and they can't move past the max length. the length being calculated from the current position to the world origin which returns a float value compared to the max length