superframe
superframe copied to clipboard
AABB-colider keeps hitting old position
Problem: the AABB-colider retains old position when object is moved.
It manifest also in the official example. https://supermedium.com/superframe/components/aabb-collider/examples/basic/. It seems the aabb colider component only remembers the old position of the block and when it moves it still colides with the old entity. The gif demonstrates this.
not sure if this applies but on the readme for aabb-collider it mentions adding:
data-aabb-collider-dynamic
attribute if the 'target' is moving, they're assumed to be static - does that help?
To update @herrKlein - you have to add data-aabb-collider-dynamic="true" to the green box in order to fix this issue. I had the same issue you did and this will 100% fix the issue. Can probably close this open issue now.
@dmarcos you can close this issue.
This should be fixed now. closing